summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2016-06-27 17:09:39 +0300
committerNoel Grandin <noelgrandin@gmail.com>2016-06-28 06:29:07 +0000
commit41bc79521eadb0c39b8f208ba6fe32b82ef1ed42 (patch)
treedbd685a624bca84e21c6240be84a209588a6e102 /comphelper
parent3bdc5063f942b9ea3b6e39e707926fbc516c19f9 (diff)
Improve readability of OUString concatanation in OStorageHelper
It is more readable and more efficient as a bonus. See: https://goo.gl/jsVAwy: Change-Id: I5cc22276fc385a381d64e00f20d6d2b302ea587f Reviewed-on: https://gerrit.libreoffice.org/26720 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/storagehelper.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index 35756dcad229..4730794de6e1 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -275,12 +275,12 @@ sal_Int32 OStorageHelper::GetXStorageFormat(
else
{
// the mediatype is not known
- OUString aMsg(OSL_THIS_FUNC);
- aMsg += ":";
- aMsg += OUString::number(__LINE__);
- aMsg += ": unknown media type '";
- aMsg += aMediaType;
- aMsg += "'";
+ OUString aMsg = OUString(OSL_THIS_FUNC)
+ + ":"
+ + OUString::number(__LINE__)
+ + ": unknown media type '"
+ + aMediaType
+ + "'";
throw beans::IllegalTypeException(aMsg);
}
@@ -479,11 +479,11 @@ bool OStorageHelper::PathHasSegment( const OUString& aPath, const OUString& aSeg
if ( !aSegment.isEmpty() && nPathLen >= nSegLen )
{
- OUString aEndSegment( "/" );
- aEndSegment += aSegment;
+ OUString aEndSegment = "/"
+ + aSegment;
- OUString aInternalSegment( aEndSegment );
- aInternalSegment += "/";
+ OUString aInternalSegment = aEndSegment
+ + "/";
if ( aPath.indexOf( aInternalSegment ) >= 0 )
bResult = true;