diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-05-30 22:22:11 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-05-31 07:25:26 +0000 |
commit | 5b26722ace02f71c79573b3795b2bf7b9412090f (patch) | |
tree | 94db6eb75e6a1da5d6e83cf77eba7d3fc5e7cc08 /sd/source/filter | |
parent | 287d483edb0359aa52238e75750f61a75f532436 (diff) |
Remove RTL_CONSTASCII_(U)STRINGPARAM (sd)
Change-Id: I179208d5ffe94e95719c7c6d0ea4eb354141531a
Reviewed-on: https://gerrit.libreoffice.org/4107
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'sd/source/filter')
-rw-r--r-- | sd/source/filter/eppt/pptx-text.cxx | 22 | ||||
-rw-r--r-- | sd/source/filter/html/buttonset.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/html/htmlex.cxx | 83 | ||||
-rw-r--r-- | sd/source/filter/ppt/pptin.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/xml/sdxmlwrp.cxx | 22 |
5 files changed, 62 insertions, 69 deletions
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx index e96a03f44636..94ceab4bb785 100644 --- a/sd/source/filter/eppt/pptx-text.cxx +++ b/sd/source/filter/eppt/pptx-text.cxx @@ -926,9 +926,9 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1 case SVX_NUM_CHARS_UPPER_LETTER : case SVX_NUM_CHARS_UPPER_LETTER_N : { - if ( sSuffix == String( RTL_CONSTASCII_USTRINGPARAM( ")" ) ) ) + if ( sSuffix == String( ")" ) ) { - if ( sPrefix == String( RTL_CONSTASCII_USTRINGPARAM( "(" ) ) ) + if ( sPrefix == String( "(" ) ) nMappedNumType = 0xa0001; // (A) else nMappedNumType = 0xb0001; // A) @@ -940,9 +940,9 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1 case SVX_NUM_CHARS_LOWER_LETTER : case SVX_NUM_CHARS_LOWER_LETTER_N : { - if ( sSuffix == String( RTL_CONSTASCII_USTRINGPARAM( ")" ) ) ) + if ( sSuffix == String( ")" ) ) { - if ( sPrefix == String( RTL_CONSTASCII_USTRINGPARAM( "(" ) ) ) + if ( sPrefix == String( "(" ) ) nMappedNumType = 0x80001; // (a) else nMappedNumType = 0x90001; // a) @@ -953,9 +953,9 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1 break; case SVX_NUM_ROMAN_UPPER : { - if ( sSuffix == String( RTL_CONSTASCII_USTRINGPARAM( ")" ) ) ) + if ( sSuffix == String( ")" ) ) { - if ( sPrefix == String( RTL_CONSTASCII_USTRINGPARAM( "(" ) ) ) + if ( sPrefix == String( "(" ) ) nMappedNumType = 0xe0001; // (I) else nMappedNumType = 0xf0001; // I) @@ -966,9 +966,9 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1 break; case SVX_NUM_ROMAN_LOWER : { - if ( sSuffix == String( RTL_CONSTASCII_USTRINGPARAM( ")" ) ) ) + if ( sSuffix == String( ")" ) ) { - if ( sPrefix == String( RTL_CONSTASCII_USTRINGPARAM( "(" ) ) ) + if ( sPrefix == String( "(" ) ) nMappedNumType = 0x40001; // (i) else nMappedNumType = 0x50001; // i) @@ -979,9 +979,9 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1 break; case SVX_NUM_ARABIC : { - if ( sSuffix == String( RTL_CONSTASCII_USTRINGPARAM( ")" ) ) ) + if ( sSuffix == String( ")" ) ) { - if ( sPrefix == String( RTL_CONSTASCII_USTRINGPARAM( "(" ) ) ) + if ( sPrefix == String( "(" ) ) nMappedNumType = 0xc0001; // (1) else nMappedNumType = 0x20001; // 1) @@ -1054,7 +1054,7 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1 void ParagraphObj::ImplGetParagraphValues( PPTExBulletProvider& rBuProv, sal_Bool bGetPropStateValue ) { - static String sNumberingLevel ( RTL_CONSTASCII_USTRINGPARAM( "NumberingLevel" ) ); + static String sNumberingLevel( "NumberingLevel" ); ::com::sun::star::uno::Any aAny; if ( GetPropertyValue( aAny, mXPropSet, sNumberingLevel, sal_True ) ) diff --git a/sd/source/filter/html/buttonset.cxx b/sd/source/filter/html/buttonset.cxx index 3f7daf14f5af..9e0c36acd227 100644 --- a/sd/source/filter/html/buttonset.cxx +++ b/sd/source/filter/html/buttonset.cxx @@ -177,7 +177,7 @@ void ButtonSetImpl::scanForButtonSets( const OUString& rPath ) if( aItem.getFileStatus( aStatus ) == osl::FileBase::E_None ) { OUString sFileName( aStatus.getFileName() ); - if( sFileName.endsWithIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM(".zip" ) ) ) + if( sFileName.endsWithIgnoreAsciiCase( ".zip" ) ) maButtons.push_back( boost::shared_ptr< ButtonsImpl >( new ButtonsImpl( aStatus.getFileURL() ) ) ); } } diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index bc5891b64924..5d636b532170 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -338,14 +338,14 @@ static String getParagraphStyle( SdrOutliner* pOutliner, sal_Int32 nPara ) { SfxItemSet aParaSet( pOutliner->GetParaAttribs( nPara ) ); - String sStyle( RTL_CONSTASCII_USTRINGPARAM("direction:") ); + String sStyle( "direction:" ); if( static_cast<const SvxFrameDirectionItem*>(aParaSet.GetItem( EE_PARA_WRITINGDIR ))->GetValue() == FRMDIR_HORI_RIGHT_TOP ) { - sStyle += String( RTL_CONSTASCII_USTRINGPARAM("rtl;") ); + sStyle += String( "rtl;" ); } else { - sStyle += String( RTL_CONSTASCII_USTRINGPARAM("ltr;") ); + sStyle += String( "ltr;" ); } return sStyle; } @@ -2037,7 +2037,7 @@ bool HtmlExport::CreateOutlinePages() SdPage* pPage = maPages[ nSdPage ]; aStr.AppendAscii( "<div align=\"left\">" ); - String aLink( RTL_CONSTASCII_USTRINGPARAM( "JavaScript:parent.NavigateAbs(" ) ); + String aLink( "JavaScript:parent.NavigateAbs(" ); aLink += OUString::number(nSdPage); aLink.Append( sal_Unicode(')') ); @@ -2093,14 +2093,14 @@ void HtmlExport::CreateFileNames() pName = new String(maIndex); else { - pName = new String( RTL_CONSTASCII_USTRINGPARAM("img") ); + pName = new String( "img" ); *pName += OUString::number(nSdPage); *pName += maHTMLExtension; } mpHTMLFiles[nSdPage] = pName; - pName = new String( RTL_CONSTASCII_USTRINGPARAM("img") ); + pName = new String( "img" ); *pName += OUString::number(nSdPage); if( meFormat==FORMAT_GIF ) pName->AppendAscii( ".gif" ); @@ -2111,7 +2111,7 @@ void HtmlExport::CreateFileNames() mpImageFiles[nSdPage] = pName; - pName = new String( RTL_CONSTASCII_USTRINGPARAM("thumb") ); + pName = new String( "thumb" ); *pName += OUString::number(nSdPage); if( meFormat!=FORMAT_JPG ) pName->AppendAscii( ".png" ); @@ -2120,7 +2120,7 @@ void HtmlExport::CreateFileNames() mpThumbnailFiles[nSdPage] = pName; - pName = new String( RTL_CONSTASCII_USTRINGPARAM("text")); + pName = new String( "text" ); *pName += OUString::number(nSdPage); *pName += maHTMLExtension; mpTextFiles[nSdPage] = pName; @@ -2239,10 +2239,9 @@ static const char * JS_CollapseOutline = bool HtmlExport::CreateFrames() { String aTmp; - String aStr( RTL_CONSTASCII_USTRINGPARAM( - "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\"\r\n" + String aStr( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\"\r\n" " \"http://www.w3.org/TR/html4/frameset.dtd\">\r\n" - "<html>\r\n<head>\r\n" ) ); + "<html>\r\n<head>\r\n" ); aStr += WriteMetaCharset(); aStr.AppendAscii( " <title>" ); @@ -2260,12 +2259,12 @@ bool HtmlExport::CreateFrames() if(mbNotes) { - String aSlash( RTL_CONSTASCII_USTRINGPARAM( "//" ) ); + String aSlash( "//" ); aFunction.SearchAndReplaceAll(aSlash, OUString()); } // substitute HTML file extension - String aPlaceHolder(RTL_CONSTASCII_USTRINGPARAM(".$EXT")); + String aPlaceHolder(".$EXT"); aFunction.SearchAndReplaceAll(aPlaceHolder, maHTMLExtension); aStr += aFunction; @@ -2378,7 +2377,7 @@ bool HtmlExport::CreateNavBarFrames() BTN_FIRST_0:BTN_FIRST_1)), aButton); if(nFile != 0 && mnSdPageCount > 1) - aButton = CreateLink( String(RTL_CONSTASCII_USTRINGPARAM("JavaScript:parent.NavigateAbs(0)")), aButton); + aButton = CreateLink( String("JavaScript:parent.NavigateAbs(0)"), aButton); aStr += aButton; aStr.AppendAscii( "\r\n" ); @@ -2390,7 +2389,7 @@ bool HtmlExport::CreateNavBarFrames() BTN_PREV_0:BTN_PREV_1)), aButton); if(nFile != 0 && mnSdPageCount > 1) - aButton = CreateLink( String(RTL_CONSTASCII_USTRINGPARAM("JavaScript:parent.NavigateRel(-1)")), aButton); + aButton = CreateLink( String("JavaScript:parent.NavigateRel(-1)"), aButton); aStr += aButton; aStr.AppendAscii( "\r\n" ); @@ -2402,7 +2401,7 @@ bool HtmlExport::CreateNavBarFrames() BTN_NEXT_0:BTN_NEXT_1)), aButton); if(nFile != 2 && mnSdPageCount > 1) - aButton = CreateLink(String(RTL_CONSTASCII_USTRINGPARAM("JavaScript:parent.NavigateRel(1)")), aButton); + aButton = CreateLink(String("JavaScript:parent.NavigateRel(1)"), aButton); aStr += aButton; aStr.AppendAscii( "\r\n" ); @@ -2415,7 +2414,7 @@ bool HtmlExport::CreateNavBarFrames() if(nFile != 2 && mnSdPageCount > 1) { - String aLink(RTL_CONSTASCII_USTRINGPARAM("JavaScript:parent.NavigateAbs(")); + String aLink("JavaScript:parent.NavigateAbs("); aLink += OUString::number(mnSdPageCount-1); aLink.AppendAscii( ")" ); aButton = CreateLink( aLink, aButton); @@ -2432,7 +2431,7 @@ bool HtmlExport::CreateNavBarFrames() aButton = CreateImage(GetButtonName(BTN_INDEX), aButton); // to the overview - aStr += CreateLink(maIndex, aButton, String(RTL_CONSTASCII_USTRINGPARAM("_top"))); + aStr += CreateLink(maIndex, aButton, String("_top")); aStr.AppendAscii( "\r\n" ); } @@ -2443,9 +2442,9 @@ bool HtmlExport::CreateNavBarFrames() if(mnButtonThema != -1) aButton = CreateImage(GetButtonName(BTN_TEXT), aButton); - String aText0( RTL_CONSTASCII_USTRINGPARAM("text0")); + String aText0( "text0" ); aText0 += maHTMLExtension; - aStr += CreateLink( aText0, aButton, String(RTL_CONSTASCII_USTRINGPARAM("_top"))); + aStr += CreateLink( aText0, aButton, String("_top")); aStr.AppendAscii( "\r\n" ); } @@ -2453,7 +2452,7 @@ bool HtmlExport::CreateNavBarFrames() aStr.AppendAscii( "</center>\r\n" ); aStr.AppendAscii( "</body>\r\n</html>" ); - String aFileName( RTL_CONSTASCII_USTRINGPARAM("navbar") ); + String aFileName( "navbar" ); aFileName += OUString::number(nFile); bOk = WriteHtml( aFileName, true, aStr ); @@ -2476,10 +2475,10 @@ bool HtmlExport::CreateNavBarFrames() if(mnButtonThema != -1) aButton = CreateImage(GetButtonName(BTN_MORE), aButton); - aStr += CreateLink(String(RTL_CONSTASCII_USTRINGPARAM("JavaScript:parent.ExpandOutline()")), aButton); + aStr += CreateLink(String("JavaScript:parent.ExpandOutline()"), aButton); aStr.AppendAscii( "</body>\r\n</html>" ); - String aFileName( RTL_CONSTASCII_USTRINGPARAM("navbar3") ); + String aFileName( "navbar3" ); bOk = WriteHtml( aFileName, true, aStr ); @@ -2501,10 +2500,10 @@ bool HtmlExport::CreateNavBarFrames() if(mnButtonThema != -1) aButton = CreateImage(GetButtonName(BTN_LESS), aButton); - aStr += CreateLink(String(RTL_CONSTASCII_USTRINGPARAM("JavaScript:parent.CollapseOutline()")), aButton); + aStr += CreateLink(String("JavaScript:parent.CollapseOutline()"), aButton); aStr.AppendAscii( "</body>\r\n</html>" ); - String aFileName( RTL_CONSTASCII_USTRINGPARAM("navbar4") ); + String aFileName( "navbar4" ); bOk = WriteHtml( aFileName, true, aStr ); if (mpProgress) @@ -2564,7 +2563,7 @@ String HtmlExport::CreateNavBar( sal_uInt16 nSdPage, bool bIsText ) const aStrNavText = CreateImage(GetButtonName(BTN_TEXT), aStrNavText); } - String aStr( RTL_CONSTASCII_USTRINGPARAM("<center>\r\n")); //<table><tr>\r\n"); + String aStr( "<center>\r\n"); //<table><tr>\r\n"); // first page if(nSdPage > 0) @@ -2644,7 +2643,7 @@ bool HtmlExport::CreateBitmaps() // ===================================================================== String HtmlExport::CreateBodyTag() const { - String aStr( RTL_CONSTASCII_USTRINGPARAM("<body") ); + String aStr( "<body" ); if( mbUserAttr || mbDocColors ) { @@ -2677,7 +2676,7 @@ String HtmlExport::CreateLink( const String& aLink, const String& aText, const String& aTarget ) const { - String aStr( RTL_CONSTASCII_USTRINGPARAM("<a href=\"")); + String aStr( "<a href=\"" ); aStr += StringToURL(aLink); if(aTarget.Len()) { @@ -2698,7 +2697,7 @@ String HtmlExport::CreateImage( const String& aImage, const String& aAltText, sal_Int16 nWidth, sal_Int16 nHeight ) const { - String aStr( RTL_CONSTASCII_USTRINGPARAM("<img src=\"")); + String aStr( "<img src=\""); aStr += StringToURL(aImage); aStr.AppendAscii( "\" border=0" ); @@ -2737,7 +2736,7 @@ String HtmlExport::CreateImage( const String& aImage, const String& aAltText, String HtmlExport::ColorToHTMLString( Color aColor ) { static char hex[] = "0123456789ABCDEF"; - String aStr( RTL_CONSTASCII_USTRINGPARAM("#xxxxxx")); + String aStr( "#xxxxxx" ); aStr.SetChar(1, hex[(aColor.GetRed() >> 4) & 0xf] ); aStr.SetChar(2, hex[aColor.GetRed() & 0xf] ); aStr.SetChar(3, hex[(aColor.GetGreen() >> 4) & 0xf] ); @@ -2756,7 +2755,7 @@ String HtmlExport::CreateHTMLCircleArea( sal_uLong nRadius, sal_uLong nCenterY, const String& rHRef ) const { - String aStr( RTL_CONSTASCII_USTRINGPARAM("<area shape=\"circle\" alt=\"\" coords=\"" )); + String aStr( "<area shape=\"circle\" alt=\"\" coords=\"" ); aStr += OUString::number(nCenterX); aStr.Append(sal_Unicode(',')); @@ -2818,7 +2817,7 @@ String HtmlExport::CreateHTMLPolygonArea( const ::basegfx::B2DPolyPolygon& rPoly String HtmlExport::CreateHTMLRectArea( const Rectangle& rRect, const String& rHRef ) const { - String aStr( RTL_CONSTASCII_USTRINGPARAM("<area shape=\"rect\" alt=\"\" coords=\"") ); + String aStr( "<area shape=\"rect\" alt=\"\" coords=\"" ); aStr += OUString::number(rRect.Left()); aStr.Append(sal_Unicode(',')); @@ -2852,7 +2851,7 @@ String HtmlExport::CreatePageURL( sal_uInt16 nPgNum ) { if(mbFrames) { - String aUrl( RTL_CONSTASCII_USTRINGPARAM("JavaScript:parent.NavigateAbs(")); + String aUrl( "JavaScript:parent.NavigateAbs(" ); aUrl += OUString::number(nPgNum); aUrl.Append(sal_Unicode(')')); return aUrl; @@ -2902,15 +2901,15 @@ bool HtmlExport::CopyScript( const String& rPath, const String& rSource, const S } - aScript.SearchAndReplaceAll( String(RTL_CONSTASCII_USTRINGPARAM("$$1")), getDocumentTitle() ); + aScript.SearchAndReplaceAll( String("$$1"), getDocumentTitle() ); const String aSaveStr( RESTOHTML( STR_WEBVIEW_SAVE )); - aScript.SearchAndReplaceAll( String(RTL_CONSTASCII_USTRINGPARAM("$$2")), aSaveStr ); + aScript.SearchAndReplaceAll( String("$$2"), aSaveStr ); - aScript.SearchAndReplaceAll( String(RTL_CONSTASCII_USTRINGPARAM("$$3")), maCGIPath ); + aScript.SearchAndReplaceAll( String("$$3"), maCGIPath ); - aScript.SearchAndReplaceAll( String(RTL_CONSTASCII_USTRINGPARAM("$$4")), OUString::number(mnWidthPixel) ); - aScript.SearchAndReplaceAll( String(RTL_CONSTASCII_USTRINGPARAM("$$5")), OUString::number(mnHeightPixel) ); + aScript.SearchAndReplaceAll( String("$$4"), OUString::number(mnWidthPixel) ); + aScript.SearchAndReplaceAll( String("$$5"), OUString::number(mnHeightPixel) ); String aDest( rPath ); @@ -2955,7 +2954,7 @@ bool HtmlExport::CreateASPScripts() return false; } - if(!CopyScript(maExportPath, String(RTL_CONSTASCII_USTRINGPARAM("edit.asp")), maIndex )) + if(!CopyScript(maExportPath, String("edit.asp"), maIndex )) return false; return true; @@ -2997,7 +2996,7 @@ bool HtmlExport::CreateImageFileList() aStr.AppendAscii( "\r\n" ); } - String aFileName( RTL_CONSTASCII_USTRINGPARAM("picture.txt") ); + String aFileName( "picture.txt" ); bool bOk = WriteHtml( aFileName, false, aStr ); if (mpProgress) @@ -3010,7 +3009,7 @@ bool HtmlExport::CreateImageFileList() bool HtmlExport::CreateImageNumberFile() { String aFull( maExportPath ); - String aFileName( RTL_CONSTASCII_USTRINGPARAM("currpic.txt") ); + String aFileName( "currpic.txt" ); aFull += aFileName; meEC.SetContext( STR_HTMLEXP_ERROR_CREATE_FILE, aFileName ); @@ -3039,7 +3038,7 @@ String HtmlExport::InsertSound( const String& rSoundFile ) if( rSoundFile.Len() == 0 ) return rSoundFile; - String aStr( RTL_CONSTASCII_USTRINGPARAM("<embed src=\"") ); + String aStr( "<embed src=\"" ); INetURLObject aURL( rSoundFile ); String aSoundFileName = String(aURL.getName()); diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx index fd66e79e0688..6afdf370048c 100644 --- a/sd/source/filter/ppt/pptin.cxx +++ b/sd/source/filter/ppt/pptin.cxx @@ -616,7 +616,7 @@ sal_Bool ImplSdPPTImport::Import() aLayoutName = ( (SdPage*)mpDoc->GetMasterPage( nMasterNum - 1 ) )->GetName(); } pPage->SetName( aLayoutName ); - aLayoutName.AppendAscii( RTL_CONSTASCII_STRINGPARAM( SD_LT_SEPARATOR )); + aLayoutName.AppendAscii( SD_LT_SEPARATOR ); aLayoutName += String( SdResId( STR_LAYOUT_OUTLINE ) ); pPage->SetLayoutName( aLayoutName ); diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx index cab013acb118..554fff5e4a63 100644 --- a/sd/source/filter/xml/sdxmlwrp.cxx +++ b/sd/source/filter/xml/sdxmlwrp.cxx @@ -268,8 +268,7 @@ sal_Int32 ReadThroughComponent( return ERRCODE_SFX_WRONGPASSWORD; #if OSL_DEBUG_LEVEL > 1 - OStringBuffer aError(RTL_CONSTASCII_STRINGPARAM( - "SAX parse exception caught while importing:\n")); + OStringBuffer aError("SAX parse exception caught while importing:\n"); aError.append(OUStringToOString(r.Message, RTL_TEXTENCODING_ASCII_US)); OSL_FAIL(aError.getStr()); @@ -304,8 +303,7 @@ sal_Int32 ReadThroughComponent( return ERRCODE_SFX_WRONGPASSWORD; #if OSL_DEBUG_LEVEL > 1 - OStringBuffer aError(RTL_CONSTASCII_STRINGPARAM( - "SAX exception caught while importing:\n")); + OStringBuffer aError("SAX exception caught while importing:\n"); aError.append(OUStringToOString(r.Message, RTL_TEXTENCODING_ASCII_US)); OSL_FAIL(aError.getStr()); @@ -315,8 +313,7 @@ sal_Int32 ReadThroughComponent( catch (const packages::zip::ZipIOException& r) { #if OSL_DEBUG_LEVEL > 1 - OStringBuffer aError(RTL_CONSTASCII_STRINGPARAM( - "Zip exception caught while importing:\n")); + OStringBuffer aError("Zip exception caught while importing:\n"); aError.append(OUStringToOString(r.Message, RTL_TEXTENCODING_ASCII_US)); OSL_FAIL(aError.getStr()); @@ -328,8 +325,7 @@ sal_Int32 ReadThroughComponent( catch (const io::IOException& r) { #if OSL_DEBUG_LEVEL > 1 - OStringBuffer aError(RTL_CONSTASCII_STRINGPARAM( - "IO exception caught while importing:\n")); + OStringBuffer aError("IO exception caught while importing:\n"); aError.append(OUStringToOString(r.Message, RTL_TEXTENCODING_ASCII_US)); OSL_FAIL(aError.getStr()); @@ -341,8 +337,7 @@ sal_Int32 ReadThroughComponent( catch (const uno::Exception& r) { #if OSL_DEBUG_LEVEL > 1 - OStringBuffer aError(RTL_CONSTASCII_STRINGPARAM( - "uno exception caught while importing:\n")); + OStringBuffer aError("uno exception caught while importing:\n"); aError.append(OUStringToOString(r.Message, RTL_TEXTENCODING_ASCII_US)); OSL_FAIL(aError.getStr()); @@ -810,8 +805,8 @@ sal_Bool SdXMLFilter::Import( ErrCode& nError ) { const String& rTypeName = pFilter->GetRealTypeName(); - if( (rTypeName.CompareToAscii( RTL_CONSTASCII_STRINGPARAM("impress_StarImpress" ) ) == 0) || - (rTypeName.CompareToAscii( RTL_CONSTASCII_STRINGPARAM("draw_StarDraw" ) ) == 0) ) + if( (rTypeName.CompareToAscii( "impress_StarImpress" ) == 0) || + (rTypeName.CompareToAscii( "draw_StarDraw" ) == 0) ) { bTransform = true; } @@ -1071,8 +1066,7 @@ sal_Bool SdXMLFilter::Export() catch (const uno::Exception &e) { #if OSL_DEBUG_LEVEL > 1 - OStringBuffer aError(RTL_CONSTASCII_STRINGPARAM( - "uno Exception caught while exporting:\n")); + OStringBuffer aError("uno Exception caught while exporting:\n"); aError.append(OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US)); OSL_FAIL(aError.getStr()); |