summaryrefslogtreecommitdiff
path: root/writerfilter/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-31 13:28:34 +0200
committerNoel Grandin <noel@peralex.com>2013-11-07 13:22:56 +0200
commit8bfbd27f8da5bfcc40e3bc53afdc153156d2f874 (patch)
tree5724ef8d828e4e3253be29892f4f14c7e821783f /writerfilter/source
parent58fa3d50aa43102cea8690fd6bf51fb80c007955 (diff)
remove unnecessary use of OUString constructor in WRITERFILTER module
Change-Id: Iba6fd6e2bb9b2a9e937149f3e3465b0817208a58
Diffstat (limited to 'writerfilter/source')
-rw-r--r--writerfilter/source/filter/ImportFilter.cxx4
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx8
2 files changed, 6 insertions, 6 deletions
diff --git a/writerfilter/source/filter/ImportFilter.cxx b/writerfilter/source/filter/ImportFilter.cxx
index 2cbf8346f536..36bbbc7274d9 100644
--- a/writerfilter/source/filter/ImportFilter.cxx
+++ b/writerfilter/source/filter/ImportFilter.cxx
@@ -126,7 +126,7 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
{
uno::Reference<beans::XPropertySetInfo> xPropsInfo = xDocProps->getPropertySetInfo();
- const OUString& aGrabBagPropName = OUString("InteropGrabBag");
+ const OUString aGrabBagPropName = "InteropGrabBag";
if( xPropsInfo.is() && xPropsInfo->hasPropertyByName( aGrabBagPropName ) )
{
uno::Sequence<beans::PropertyValue> aGrabBag;
@@ -139,7 +139,7 @@ sal_Bool WriterFilter::filter( const uno::Sequence< beans::PropertyValue >& aDes
uno::Reference<xml::dom::XDocument> aThemeDom = pDocument->getThemeDom();
beans::PropertyValue* pValue = aGrabBag.getArray();
- pValue[length].Name = OUString("OOXTheme");
+ pValue[length].Name = "OOXTheme";
pValue[length].Value = uno::makeAny( aThemeDom );
xDocProps->setPropertyValue( aGrabBagPropName, uno::Any( aGrabBag ) );
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index f00ee1399877..25353391b273 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -361,12 +361,12 @@ void RTFDocumentImpl::resolveSubstream(sal_uInt32 nPos, Id nId, OUString& rIgnor
if (!m_aAuthor.isEmpty())
{
pImpl->setAuthor(m_aAuthor);
- m_aAuthor = OUString();
+ m_aAuthor = "";
}
if (!m_aAuthorInitials.isEmpty())
{
pImpl->setAuthorInitials(m_aAuthorInitials);
- m_aAuthorInitials = OUString();
+ m_aAuthorInitials = "";
}
pImpl->seek(nPos);
SAL_INFO("writerfilter", "substream start");
@@ -1126,7 +1126,7 @@ void RTFDocumentImpl::text(OUString& rString)
if (!m_aIgnoreFirst.isEmpty() && m_aIgnoreFirst.equals(rString))
{
- m_aIgnoreFirst = OUString();
+ m_aIgnoreFirst = "";
return;
}
@@ -2676,7 +2676,7 @@ int RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
case RTF_DOBYPARA:
{
beans::PropertyValue aPropertyValue;
- aPropertyValue.Name = OUString("VertOrientRelation");
+ aPropertyValue.Name = "VertOrientRelation";
aPropertyValue.Value <<= text::RelOrientation::FRAME;
m_aStates.top().aDrawingObject.aPendingProperties.push_back(aPropertyValue);
}