summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-19 17:17:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-19 17:17:03 +0200
commitc8b19bdd2a2f3658e158bae44d4b472497591f85 (patch)
tree02446a5978aaba7fee40934a55203355623ff211 /starmath
parent02d0f134f300b0f739f09aa2743ed904cfa6666e (diff)
loplugin:stringcopy: starmath
Change-Id: I2687b8ce4b20871f50401cbc50746c35b9668eba
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/accessibility.cxx2
-rw-r--r--starmath/source/cfgitem.cxx2
-rw-r--r--starmath/source/document.cxx2
-rw-r--r--starmath/source/parse.cxx2
-rw-r--r--starmath/source/unomodel.cxx4
-rw-r--r--starmath/source/view.cxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index 69b44f718efc..1e7fb910482d 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -320,7 +320,7 @@ OUString SAL_CALL SmGraphicAccessible::getAccessibleDescription()
{
SolarMutexGuard aGuard;
SmDocShell *pDoc = GetDoc_Impl();
- return pDoc ? OUString(pDoc->GetText()) : OUString();
+ return pDoc ? pDoc->GetText() : OUString();
}
OUString SAL_CALL SmGraphicAccessible::getAccessibleName()
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index 85b9598ec756..bf266ceecd2b 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -683,7 +683,7 @@ void SmMathConfig::SaveFontFormatList()
// Name
pVal->Name = aNodeNameDelim;
pVal->Name += *pName++;
- pVal->Value <<= OUString( aFntFmt.aName );
+ pVal->Value <<= aFntFmt.aName;
pVal++;
// CharSet
pVal->Name = aNodeNameDelim;
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 27e2fe065bdb..1e9e2ee0c7a6 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -1045,7 +1045,7 @@ void SmDocShell::Execute(SfxRequest& rReq)
case SID_TEXT:
{
const SfxStringItem& rItem = static_cast<const SfxStringItem&>(rReq.GetArgs()->Get(SID_TEXT));
- if (GetText() != OUString(rItem.GetValue()))
+ if (GetText() != rItem.GetValue())
SetText(rItem.GetValue());
}
break;
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index bd7dfe78ec8a..5ecf54b00d7f 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1813,7 +1813,7 @@ SmStructureNode *SmParser::DoFontSize()
Fraction aValue( 1L );
if (lcl_IsNumber( m_aCurToken.aText ))
{
- double fTmp = OUString(m_aCurToken.aText).toDouble();
+ double fTmp = m_aCurToken.aText.toDouble();
if (fTmp != 0.0)
{
aValue = fTmp;
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 9621ecec73a8..e2d882f011f6 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -444,7 +444,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
if(sFontName.isEmpty())
throw IllegalArgumentException();
- if(OUString(aFormat.GetFont((*ppEntries)->mnMemberId).GetFamilyName()) != sFontName)
+ if(aFormat.GetFont((*ppEntries)->mnMemberId).GetFamilyName() != sFontName)
{
const SmFace rOld = aFormat.GetFont((*ppEntries)->mnMemberId);
@@ -802,7 +802,7 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu
case HANDLE_PRINTER_NAME:
{
SfxPrinter *pPrinter = pDocSh->GetPrinter ( );
- *pValue <<= pPrinter ? OUString ( pPrinter->GetName()) : OUString();
+ *pValue <<= pPrinter ? pPrinter->GetName() : OUString();
}
break;
case HANDLE_PRINTER_SETUP:
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index e7aa71504eea..af8ffbe9bf7a 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -655,7 +655,7 @@ void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const
{
const SfxStringItem *pItem = dynamic_cast<const SfxStringItem*>( pState);
- if ((pItem != nullptr) && (rEdit.GetText() != OUString(pItem->GetValue())))
+ if ((pItem != nullptr) && (rEdit.GetText() != pItem->GetValue()))
rEdit.SetText(pItem->GetValue());
SfxControllerItem::StateChanged (nSID, eState, pState);
}