summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2012-08-06 10:40:32 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-08-06 12:22:10 +0100
commitcf239da5c403164e75c369173fe6bed747de9e09 (patch)
tree38999901baaf3091692d7649c7804f224b661a99 /svx
parent515ceca5153d67ea602ab8c4fb339a7b42e9063e (diff)
There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString. Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/docrecovery.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index 32685fab68ce..c50da3817a6b 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -556,7 +556,7 @@ void SAL_CALL RecoveryCore::statusChanged(const css::frame::FeatureStateEvent& a
aNew.RecoveryState = E_NOT_RECOVERED_YET;
// patch DisplayName! Because the document title contain more then the file name ...
- sal_Int32 i = aNew.DisplayName.indexOf(::rtl::OUString(" - "));
+ sal_Int32 i = aNew.DisplayName.indexOf(" - ");
if (i > 0)
aNew.DisplayName = aNew.DisplayName.copy(0, i);