From 52a242e5bccc4307a1adcff093cfd4df7e6af101 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 15 Dec 2014 09:28:51 +0000 Subject: coverity#704777 Explicit null dereferenced Change-Id: Ia9a3a45183b7aa8367b3146061bde5036bcd8cfe --- sd/inc/sdundo.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/inc') diff --git a/sd/inc/sdundo.hxx b/sd/inc/sdundo.hxx index 75636404b0bc..60bb645d6007 100644 --- a/sd/inc/sdundo.hxx +++ b/sd/inc/sdundo.hxx @@ -33,7 +33,7 @@ public: : mpDoc(pSdDrawDocument) {} virtual ~SdUndoAction() {} - void SetComment(OUString& rStr) { maComment = rStr; } + void SetComment(const OUString& rStr) { maComment = rStr; } virtual OUString GetComment() const SAL_OVERRIDE { return maComment; } virtual SdUndoAction* Clone() const { return NULL; } -- cgit