summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlimp.cxx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-04-06 14:51:42 +0200
committerDavid Tardon <dtardon@redhat.com>2012-04-06 14:51:42 +0200
commit0c6ebe5d225d6a655f078977455cec6d0a3afa6e (patch)
treebecc109d0f2684ebf50afc783e089b49dd469661 /sw/source/filter/xml/xmlimp.cxx
parent7545dbbf64e959cfb166556935946f442199e92b (diff)
parent8a01ee624318ac08800af89d988971114637a04e (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'sw/source/filter/xml/xmlimp.cxx')
-rw-r--r--sw/source/filter/xml/xmlimp.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index f19a20a8bcea..6fa217848770 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -1061,37 +1061,37 @@ void SwXMLImport::SetViewSettings(const Sequence < PropertyValue > & aViewProps)
for (sal_Int32 i = 0; i < nCount ; i++)
{
- if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "ViewAreaTop" ) ) )
+ if ( pValue->Name == "ViewAreaTop" )
{
pValue->Value >>= nTmp;
aRect.setY( static_cast< long >(bTwip ? MM100_TO_TWIP ( nTmp ) : nTmp) );
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "ViewAreaLeft" ) ) )
+ else if ( pValue->Name == "ViewAreaLeft" )
{
pValue->Value >>= nTmp;
aRect.setX( static_cast< long >(bTwip ? MM100_TO_TWIP ( nTmp ) : nTmp) );
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "ViewAreaWidth" ) ) )
+ else if ( pValue->Name == "ViewAreaWidth" )
{
pValue->Value >>= nTmp;
Size aSize( aRect.GetSize() );
aSize.Width() = static_cast< long >(bTwip ? MM100_TO_TWIP ( nTmp ) : nTmp);
aRect.SetSize( aSize );
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "ViewAreaHeight" ) ) )
+ else if ( pValue->Name == "ViewAreaHeight" )
{
pValue->Value >>= nTmp;
Size aSize( aRect.GetSize() );
aSize.Height() = static_cast< long >(bTwip ? MM100_TO_TWIP ( nTmp ) : nTmp);
aRect.SetSize( aSize );
}
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "ShowRedlineChanges" ) ) )
+ else if ( pValue->Name == "ShowRedlineChanges" )
{
bShowRedlineChanges = *(sal_Bool *)(pValue->Value.getValue());
bChangeShowRedline = sal_True;
}
// Headers and footers are not displayed in BrowseView anymore
- else if (pValue->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "InBrowseMode" ) ) )
+ else if ( pValue->Name == "InBrowseMode" )
{
bBrowseMode = *(sal_Bool *)(pValue->Value.getValue());
bChangeBrowseMode = sal_True;