Kaydet (Commit) c8b19bdd authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringcopy: starmath

Change-Id: I2687b8ce4b20871f50401cbc50746c35b9668eba
üst 02d0f134
......@@ -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()
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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:
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment