remove unnecessary use of OUString constructor in WRITERFILTER module
Change-Id: Iba6fd6e2bb9b2a9e937149f3e3465b0817208a58
This commit is contained in:
@@ -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 ) );
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user