diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 11:10:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 13:56:07 +0200 |
commit | 5112f6a6c6e4cd76045f31e269a679b50dc83fb2 (patch) | |
tree | ed7af465f490d743b06831216243fddbd2e13940 /slideshow/source | |
parent | 0b4b02d9b6cf5b939dc1522d8348e3f4d6f955d4 (diff) |
remove RTL_CONSTASCII_STRINGPARAM in OString constructor
Convert code like:
OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX"));
to:
OString aKeyName("NDX");
which compiles down to the same code
Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
Diffstat (limited to 'slideshow/source')
-rw-r--r-- | slideshow/source/engine/shapes/drawshapesubsetting.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/shapes/gdimtftools.cxx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/slideshow/source/engine/shapes/drawshapesubsetting.cxx b/slideshow/source/engine/shapes/drawshapesubsetting.cxx index a05305575606..0cb1b075f5c1 100644 --- a/slideshow/source/engine/shapes/drawshapesubsetting.cxx +++ b/slideshow/source/engine/shapes/drawshapesubsetting.cxx @@ -79,9 +79,7 @@ namespace slideshow MetaCommentAction* pAct = static_cast<MetaCommentAction*>(pCurrAct); // skip comment if not a special XTEXT... comment - if( pAct->GetComment().matchIgnoreAsciiCase( - OString(RTL_CONSTASCII_STRINGPARAM("XTEXT")), - 0) ) + if( pAct->GetComment().matchIgnoreAsciiCase( OString("XTEXT"), 0 ) ) { // fill classification vector with NOOPs, // then insert corresponding classes at diff --git a/slideshow/source/engine/shapes/gdimtftools.cxx b/slideshow/source/engine/shapes/gdimtftools.cxx index 9850f3e3a546..484548999dac 100644 --- a/slideshow/source/engine/shapes/gdimtftools.cxx +++ b/slideshow/source/engine/shapes/gdimtftools.cxx @@ -450,9 +450,7 @@ bool getRectanglesFromScrollMtf( ::basegfx::B2DRectangle& o_rScrollRect, MetaCommentAction * pAct = static_cast<MetaCommentAction *>(pCurrAct); // skip comment if not a special XTEXT... comment - if( pAct->GetComment().matchIgnoreAsciiCase( - OString(RTL_CONSTASCII_STRINGPARAM("XTEXT")), - 0) ) + if( pAct->GetComment().matchIgnoreAsciiCase( OString("XTEXT"), 0 ) ) { if (pAct->GetComment().equalsIgnoreAsciiCaseL( RTL_CONSTASCII_STRINGPARAM("XTEXT_SCROLLRECT") )) |