summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-19 17:18:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-19 17:18:20 +0200
commitc556c65d7179a7aabe6553f2c9fc4f573d39355e (patch)
tree0c23e62421aa8fe7c5c34b0b358f09bb96aa3250 /editeng
parent97d5293ccaf12ceae0c6d7e79b73cd783038c95c (diff)
loplugin:stringcopy: editeng
Change-Id: I3d5b7673b2403bf670d85fa3c65f67aefcea48ff
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx2
-rw-r--r--editeng/source/items/paraitem.cxx2
-rw-r--r--editeng/source/misc/SvXMLAutoCorrectExport.cxx4
-rw-r--r--editeng/source/misc/acorrcfg.cxx4
4 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 99d605788a80..e7840ce52cf3 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -758,7 +758,7 @@ namespace accessibility
}
}
- return OUString( sStr ) + aLine;
+ return sStr + aLine;
}
OUString SAL_CALL AccessibleEditableTextPara::getAccessibleName()
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx
index b9e4a7e4ec3a..71db51db0178 100644
--- a/editeng/source/items/paraitem.cxx
+++ b/editeng/source/items/paraitem.cxx
@@ -1204,7 +1204,7 @@ bool SvxPageModelItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) co
switch ( nMemberId )
{
case MID_AUTO: rVal <<= bAuto; break;
- case MID_NAME: rVal <<= OUString( GetValue() ); break;
+ case MID_NAME: rVal <<= GetValue(); break;
default: OSL_FAIL("Wrong MemberId!"); return false;
}
diff --git a/editeng/source/misc/SvXMLAutoCorrectExport.cxx b/editeng/source/misc/SvXMLAutoCorrectExport.cxx
index 841805b1a102..28a7b8505e76 100644
--- a/editeng/source/misc/SvXMLAutoCorrectExport.cxx
+++ b/editeng/source/misc/SvXMLAutoCorrectExport.cxx
@@ -58,10 +58,10 @@ sal_uInt32 SvXMLAutoCorrectExport::exportDoc(enum XMLTokenEnum /*eClass*/)
AddAttribute( XML_NAMESPACE_BLOCKLIST,
XML_ABBREVIATED_NAME,
- OUString(p->GetShort()));
+ p->GetShort());
AddAttribute( XML_NAMESPACE_BLOCKLIST,
XML_NAME,
- OUString(p->IsTextOnly() ? p->GetLong() : p->GetShort()));
+ p->IsTextOnly() ? p->GetLong() : p->GetShort());
SvXMLElementExport aBlock( *this, XML_NAMESPACE_BLOCKLIST, XML_BLOCK, true, true);
}
diff --git a/editeng/source/misc/acorrcfg.cxx b/editeng/source/misc/acorrcfg.cxx
index f9dd4cd3ec70..3f8df4907ed5 100644
--- a/editeng/source/misc/acorrcfg.cxx
+++ b/editeng/source/misc/acorrcfg.cxx
@@ -529,7 +529,7 @@ void SvxSwAutoCorrCfg::ImplCommit()
// "Format/Option/ChangeToBullets/Enable"
css::uno::Any(sal_Int32(rSwFlags.cBullet)),
// "Format/Option/ChangeToBullets/SpecialCharacter/Char"
- css::uno::Any(OUString(rSwFlags.aBulletFont.GetFamilyName())),
+ css::uno::Any(rSwFlags.aBulletFont.GetFamilyName()),
// "Format/Option/ChangeToBullets/SpecialCharacter/Font"
css::uno::Any(sal_Int32(rSwFlags.aBulletFont.GetFamilyType())),
// "Format/Option/ChangeToBullets/SpecialCharacter/FontFamily"
@@ -573,7 +573,7 @@ void SvxSwAutoCorrCfg::ImplCommit()
css::uno::Any(rSwFlags.bAutoCmpltKeepList), // "Completion/KeepList"
css::uno::Any(sal_Int32(rSwFlags.cByInputBullet)),
// "Format/ByInput/ApplyNumbering/SpecialCharacter/Char"
- css::uno::Any(OUString(rSwFlags.aByInputBulletFont.GetFamilyName())),
+ css::uno::Any(rSwFlags.aByInputBulletFont.GetFamilyName()),
// "Format/ByInput/ApplyNumbering/SpecialCharacter/Font"
css::uno::Any(sal_Int32(rSwFlags.aByInputBulletFont.GetFamilyType())),
// "Format/ByInput/ApplyNumbering/SpecialCharacter/FontFamily"