summaryrefslogtreecommitdiff
path: root/filter/source/msfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-03 14:03:54 +0200
committerNoel Grandin <noel@peralex.com>2014-11-05 08:44:19 +0200
commit705c48d32eec0aa5180e60ca157daca4b154e4a3 (patch)
tree97f43496f4b429a2b8d03b1e71cb2a1c33142a15 /filter/source/msfilter
parentb7d8a58ff2698ffc6e22943f64aa97c5ea253bd9 (diff)
fdo#38835 strip out OUString globals
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
Diffstat (limited to 'filter/source/msfilter')
-rw-r--r--filter/source/msfilter/escherex.cxx30
-rw-r--r--filter/source/msfilter/mstoolbar.cxx4
-rw-r--r--filter/source/msfilter/svdfppt.cxx38
3 files changed, 36 insertions, 36 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index bfad5c53d524..23fcc48aa218 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -847,13 +847,13 @@ bool EscherPropertyContainer::GetLineArrow( const bool bLineStart,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & rXPropSet,
ESCHER_LineEnd& reLineEnd, sal_Int32& rnArrowLength, sal_Int32& rnArrowWidth )
{
- static OUString sLineStart ( "LineStart" );
- static OUString sLineStartName( "LineStartName" );
- static OUString sLineEnd ( "LineEnd" );
- static OUString sLineEndName ( "LineEndName" );
+ static const char sLineStart [] = "LineStart";
+ static const char sLineStartName[] = "LineStartName";
+ static const char sLineEnd [] = "LineEnd";
+ static const char sLineEndName [] = "LineEndName";
- const OUString sLine ( bLineStart ? sLineStart : sLineEnd );
- const OUString sLineName ( bLineStart ? sLineStartName : sLineEndName );
+ const OUString sLine ( bLineStart ? OUString(sLineStart) : OUString(sLineEnd) );
+ const OUString sLineName ( bLineStart ? OUString(sLineStartName) : OUString(sLineEndName) );
bool bIsArrow = false;
@@ -2015,8 +2015,8 @@ bool EscherPropertyContainer::CreatePolygonProperties(
::com::sun::star::awt::Rectangle& rGeoRect,
Polygon* pPolygon )
{
- static OUString sPolyPolygonBezier ( "PolyPolygonBezier" );
- static OUString sPolyPolygon ( "PolyPolygon" );
+ static const char sPolyPolygonBezier [] = "PolyPolygonBezier";
+ static const char sPolyPolygon [] = "PolyPolygon";
bool bRetValue = true;
bool bLine = ( nFlags & ESCHER_CREATEPOLYGON_LINE ) != 0;
@@ -2029,7 +2029,7 @@ bool EscherPropertyContainer::CreatePolygonProperties(
{
::com::sun::star::uno::Any aAny;
bRetValue = EscherPropertyValueHelper::GetPropertyValue( aAny, rXPropSet,
- ( bBezier ) ? sPolyPolygonBezier : sPolyPolygon, true );
+ ( bBezier ) ? OUString(sPolyPolygonBezier) : OUString(sPolyPolygon), true );
if ( bRetValue )
{
aPolyPolygon = GetPolyPolygon( aAny );
@@ -2311,12 +2311,12 @@ bool EscherPropertyContainer::CreateConnectorProperties(
EscherSolverContainer& rSolverContainer, ::com::sun::star::awt::Rectangle& rGeoRect,
sal_uInt16& rShapeType, sal_uInt16& rShapeFlags )
{
- static OUString sEdgeKind ( "EdgeKind" );
- static OUString sEdgeStartPoint ( "EdgeStartPoint" );
- static OUString sEdgeEndPoint ( "EdgeEndPoint" );
- static OUString sEdgeStartConnection ( "EdgeStartConnection" );
- static OUString sEdgeEndConnection ( "EdgeEndConnection" );
- static OUString sEdgePath ( "PolyPolygonBezier" );
+ static const char sEdgeKind [] = "EdgeKind";
+ static const char sEdgeStartPoint [] = "EdgeStartPoint";
+ static const char sEdgeEndPoint [] = "EdgeEndPoint";
+ static const char sEdgeStartConnection [] = "EdgeStartConnection";
+ static const char sEdgeEndConnection [] = "EdgeEndConnection";
+ static const char sEdgePath [] = "PolyPolygonBezier";
bool bRetValue = false;
rShapeType = rShapeFlags = 0;
diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx
index c8ff2f0c16fa..328b828318d8 100644
--- a/filter/source/msfilter/mstoolbar.cxx
+++ b/filter/source/msfilter/mstoolbar.cxx
@@ -97,8 +97,8 @@ uno::Any
CustomToolBarImportHelper::createCommandFromMacro( const OUString& sCmd )
{
//"vnd.sun.star.script:Standard.Module1.Main?language=Basic&location=document"
- static OUString scheme( "vnd.sun.star.script:" );
- static OUString part2( "?language=Basic&location=document" );
+ static const char scheme[] = "vnd.sun.star.script:";
+ static const char part2 [] = "?language=Basic&location=document";
// create script url
OUString scriptURL = scheme + sCmd + part2;
return uno::makeAny( scriptURL );
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index c2cd0b3ba98c..e570bba424b1 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -7197,7 +7197,7 @@ void CreateTableRows( Reference< XTableRows > xTableRows, const std::set< sal_In
else
nHeight = nTableBottom - nLastPosition;
- static const OUString sWidth( "Height" );
+ static const char sWidth[] = "Height";
Reference< XPropertySet > xPropSet( xTableRows->getByIndex( n ), UNO_QUERY_THROW );
xPropSet->setPropertyValue( sWidth, Any( nHeight ) );
}
@@ -7221,7 +7221,7 @@ void CreateTableColumns( Reference< XTableColumns > xTableColumns, const std::se
else
nWidth = nTableRight - nLastPosition;
- static const OUString sWidth( "Width" );
+ static const char sWidth[] = "Width";
Reference< XPropertySet > xPropSet( xTableColumns->getByIndex( n ), UNO_QUERY_THROW );
xPropSet->setPropertyValue( sWidth, Any( nWidth ) );
}
@@ -7256,16 +7256,16 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
const sal_Int32 nRightDist(static_cast<const SdrMetricItem&>(pObj->GetMergedItem(SDRATTR_TEXT_RIGHTDIST)).GetValue());
const sal_Int32 nUpperDist(static_cast<const SdrMetricItem&>(pObj->GetMergedItem(SDRATTR_TEXT_UPPERDIST)).GetValue());
const sal_Int32 nLowerDist(static_cast<const SdrMetricItem&>(pObj->GetMergedItem(SDRATTR_TEXT_LOWERDIST)).GetValue());
- static const OUString sTopBorder( "TextUpperDistance" );
- static const OUString sBottomBorder( "TextLowerDistance" );
- static const OUString sLeftBorder( "TextLeftDistance" );
- static const OUString sRightBorder( "TextRightDistance" );
+ static const char sTopBorder[] = "TextUpperDistance";
+ static const char sBottomBorder[] = "TextLowerDistance";
+ static const char sLeftBorder[] = "TextLeftDistance";
+ static const char sRightBorder[] = "TextRightDistance";
xPropSet->setPropertyValue( sTopBorder, Any( nUpperDist ) );
xPropSet->setPropertyValue( sRightBorder, Any( nRightDist ) );
xPropSet->setPropertyValue( sLeftBorder, Any( nLeftDist ) );
xPropSet->setPropertyValue( sBottomBorder, Any( nLowerDist ) );
- static const OUString sTextVerticalAdjust( "TextVerticalAdjust" );
+ static const char sTextVerticalAdjust[] = "TextVerticalAdjust";
const SdrTextVertAdjust eTextVertAdjust(static_cast<const SdrTextVertAdjustItem&>(pObj->GetMergedItem(SDRATTR_TEXT_VERTADJUST)).GetValue());
drawing::TextVerticalAdjust eVA( drawing::TextVerticalAdjust_TOP );
if ( eTextVertAdjust == SDRTEXTVERTADJUST_CENTER )
@@ -7277,8 +7277,8 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
//set textHorizontalAdjust and TextWritingMode attr
const sal_Int32 eHA(static_cast<const SdrTextHorzAdjustItem&>(pObj->GetMergedItem(SDRATTR_TEXT_HORZADJUST)).GetValue());
const SvxFrameDirection eDirection = (const SvxFrameDirection)(static_cast<const SvxFrameDirectionItem&>(pObj->GetMergedItem(EE_PARA_WRITINGDIR)).GetValue());
- static const OUString sHorizontalAdjust( "TextHorizontalAdjust" );
- static const OUString sWritingMode( "TextWritingMode" );
+ static const char sHorizontalAdjust[] = "TextHorizontalAdjust";
+ static const char sWritingMode[] = "TextWritingMode";
xPropSet->setPropertyValue( sHorizontalAdjust , Any( eHA ) );
if ( eDirection == FRMDIR_VERT_TOP_RIGHT )
{//vertical writing
@@ -7291,7 +7291,7 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
{
case drawing::FillStyle_SOLID :
{
- static const OUString sFillColor( "FillColor" );
+ static const char sFillColor[] = "FillColor";
eFS = com::sun::star::drawing::FillStyle_SOLID;
Color aFillColor( static_cast<const XFillColorItem&>(pObj->GetMergedItem( XATTR_FILLCOLOR )).GetColorValue() );
sal_Int32 nFillColor( aFillColor.GetColor() );
@@ -7315,7 +7315,7 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
aGradient.EndIntensity = aXGradient.GetEndIntens();
aGradient.StepCount = aXGradient.GetSteps();
- static const OUString sFillGradient( "FillGradient" );
+ static const char sFillGradient[] = "FillGradient";
xPropSet->setPropertyValue( sFillGradient, Any( aGradient ) );
}
break;
@@ -7350,12 +7350,12 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
break;
}
- static const OUString sFillStyle( "FillStyle" );
+ static const char sFillStyle[] = "FillStyle";
xPropSet->setPropertyValue( sFillStyle, Any( eFS ) );
if ( eFillStyle != drawing::FillStyle_NONE )
{
sal_Int16 nFillTransparence( static_cast<const XFillTransparenceItem&>(pObj->GetMergedItem( XATTR_FILLTRANSPARENCE ) ).GetValue() );
- static const OUString sFillTransparence( "FillTransparence" );
+ static const char sFillTransparence[] = "FillTransparence";
xPropSet->setPropertyValue( sFillTransparence, Any( nFillTransparence ) );
}
}
@@ -7394,12 +7394,12 @@ void ApplyCellLineAttributes( const SdrObject* pLine, Reference< XTable >& xTabl
std::vector< sal_Int32 >::const_iterator aIter( vPositions.begin() );
while( aIter != vPositions.end() )
{
- static const OUString sTopBorder( "TopBorder" );
- static const OUString sBottomBorder( "BottomBorder" );
- static const OUString sLeftBorder( "LeftBorder" );
- static const OUString sRightBorder( "RightBorder" );
- static const OUString sDiagonalTLBR( "DiagonalTLBR" );
- static const OUString sDiagonalBLTR( "DiagonalBLTR" );
+ static const char sTopBorder[] = "TopBorder";
+ static const char sBottomBorder[] = "BottomBorder";
+ static const char sLeftBorder[] = "LeftBorder";
+ static const char sRightBorder[] = "RightBorder";
+ static const char sDiagonalTLBR[] = "DiagonalTLBR";
+ static const char sDiagonalBLTR[] = "DiagonalBLTR";
sal_Int32 nPosition = *aIter & 0xffffff;
sal_Int32 nFlags = *aIter &~0xffffff;