summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-10 12:37:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-11 09:26:28 +0200
commit2962ceec4b96758bec7e7a0390d5ec60e3ce708f (patch)
tree54b1f57a5ee59babeef28b2f624024cecef8f4c3 /svx
parentb5303563b785115075b5f9b7b4abccd8f9d916e2 (diff)
remove some unnecessary temporary OUStrings
found with: git grep -nP 'OUString\(\s*\w+\s*\)' | grep -v new | grep -v return Change-Id: I923109b4339210aed2639e423fbc4d5f19233f02 Reviewed-on: https://gerrit.libreoffice.org/37463 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/core/extedit.cxx2
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx4
-rw-r--r--svx/source/form/datanavi.cxx2
-rw-r--r--svx/source/svdraw/svdoole2.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx
index d87cc92a3a85..0568defa3ff1 100644
--- a/svx/source/core/extedit.cxx
+++ b/svx/source/core/extedit.cxx
@@ -122,7 +122,7 @@ void ExternalToolEdit::Edit(GraphicObject const*const pGraphicObject)
}
// Move it to a file name with image extension properly set
- aTempFileName = aTempFileBase + "." + OUString(fExtension);
+ aTempFileName = aTempFileBase + "." + fExtension;
// FIXME: this is pretty stupid, need a better osl temp file API
rc = osl::File::move(aTempFileBase, aTempFileName);
if (osl::FileBase::E_None != rc)
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index 51744355fa5a..9f913c0ec943 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -580,9 +580,9 @@ IMPL_LINK_NOARG( FmGridHeader, OnAsyncExecuteDrop, void*, void )
sRealName += "_";
sRealName += sPurePostfix;
if (i)
- xSecondCol->setPropertyValue(FM_PROP_NAME, makeAny(OUString(sRealName)));
+ xSecondCol->setPropertyValue(FM_PROP_NAME, makeAny(sRealName));
else
- xCol->setPropertyValue(FM_PROP_NAME, makeAny(OUString(sRealName)));
+ xCol->setPropertyValue(FM_PROP_NAME, makeAny(sRealName));
}
}
else
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 7862c8f1ea5b..c90354bbc7b8 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -2403,7 +2403,7 @@ namespace svxform
{
m_xTempBinding->setPropertyValue(
- sPropName, makeAny( OUString( sNewCondition ) ) );
+ sPropName, makeAny( sNewCondition ) );
}
}
}
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index 7f26842fa0b7..caa16f3c76cd 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -827,7 +827,7 @@ bool SdrOle2Obj::UpdateLinkURL_Impl()
// TODO/LATER: there should be possible to get current mediadescriptor settings from the object
uno::Sequence< beans::PropertyValue > aArgs( 1 );
aArgs[0].Name = "URL";
- aArgs[0].Value <<= OUString( aNewLinkURL );
+ aArgs[0].Value <<= aNewLinkURL;
xPersObj->reload( aArgs, uno::Sequence< beans::PropertyValue >() );
mpImpl->maLinkURL = aNewLinkURL;