summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-09 12:22:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-09 12:22:17 +0100
commit9d3cb71115cfb34adde975f66f394303982f85be (patch)
treeadf872556cd90007038c9cf22f7a0aac630395f1 /toolkit
parent53352be12cb6a191934b8107559ea47171868718 (diff)
Prevent += called on temporary O[U]String instances
...found regression e31205f3ec1f941ab5a188bfde6329edf2acc55b "EditUndoRemoveChars::GetStr must return a reference" and dubious code 0e23f7b0839df68d277186b4df54ba391ac3406a "Lets assume this doesn't want to update m_pForcedPrefix->GetText() anyway" in addition to the apparent sillies directly fixed in this commit. Introduces HAVE_CXX11_REF_QUALIFIER. Change-Id: I564e98254fd53c1dd9b34193d7057c59721ee24c
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/formattedcontrol.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx
index ef8393bbae7b..5cd650da2d6b 100644
--- a/toolkit/source/controls/formattedcontrol.cxx
+++ b/toolkit/source/controls/formattedcontrol.cxx
@@ -363,9 +363,9 @@ namespace toolkit
}
throw IllegalArgumentException(
- ( OUString("Unable to convert the given value for the property ")
- += GetPropertyName((sal_uInt16)nPropId) )
- += " (double, integer, or string expected).",
+ ("Unable to convert the given value for the property "
+ + GetPropertyName((sal_uInt16)nPropId)
+ + " (double, integer, or string expected)."),
static_cast< XPropertySet* >(this),
1);
}