diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-14 08:16:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-14 08:17:32 +0200 |
commit | d366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch) | |
tree | 4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /sdext | |
parent | d2fa59e4025050c9b668ecff379d668f0db52639 (diff) |
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/filterdet.cxx | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/misc/pdfihelper.cxx | 8 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/drawtreevisiting.cxx | 8 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/writertreevisiting.cxx | 16 | ||||
-rw-r--r-- | sdext/source/pdfimport/wrapper/wrapper.cxx | 4 |
5 files changed, 19 insertions, 19 deletions
diff --git a/sdext/source/pdfimport/filterdet.cxx b/sdext/source/pdfimport/filterdet.cxx index 7665be4d1e7d..09c35e5de51e 100644 --- a/sdext/source/pdfimport/filterdet.cxx +++ b/sdext/source/pdfimport/filterdet.cxx @@ -699,7 +699,7 @@ uno::Reference< io::XStream > getAdditionalStream( const OUString& break; } - OUString aDocName( rInPDFFileURL.copy( rInPDFFileURL.lastIndexOf( sal_Unicode('/') )+1 ) ); + OUString aDocName( rInPDFFileURL.copy( rInPDFFileURL.lastIndexOf( '/' )+1 ) ); bool bEntered = false; do diff --git a/sdext/source/pdfimport/misc/pdfihelper.cxx b/sdext/source/pdfimport/misc/pdfihelper.cxx index eaa6304274c2..7a4201460baf 100644 --- a/sdext/source/pdfimport/misc/pdfihelper.cxx +++ b/sdext/source/pdfimport/misc/pdfihelper.cxx @@ -32,15 +32,15 @@ OUString pdfi::getColorString( const rendering::ARGBColor& rCol ) const sal_uInt8 nRed ( sal::static_int_cast<sal_Int8>( basegfx::fround( rCol.Red * 255.0 ) ) ); const sal_uInt8 nGreen( sal::static_int_cast<sal_Int8>( basegfx::fround( rCol.Green * 255.0 ) ) ); const sal_uInt8 nBlue ( sal::static_int_cast<sal_Int8>( basegfx::fround( rCol.Blue * 255.0 ) ) ); - aBuf.append( sal_Unicode('#') ); + aBuf.append( '#' ); if( nRed < 10 ) - aBuf.append( sal_Unicode('0') ); + aBuf.append( '0' ); aBuf.append( sal_Int32(nRed), 16 ); if( nGreen < 10 ) - aBuf.append( sal_Unicode('0') ); + aBuf.append( '0' ); aBuf.append( sal_Int32(nGreen), 16 ); if( nBlue < 10 ) - aBuf.append( sal_Unicode('0') ); + aBuf.append( '0' ); aBuf.append( sal_Int32(nBlue), 16 ); // TODO(F3): respect alpha transparency (polygons etc.) diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx index 1b3cfadd43a9..e3b013502f0d 100644 --- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx +++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx @@ -230,17 +230,17 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem, if( fRotate != 0.0 ) { if( !aBuf.isEmpty() ) - aBuf.append( sal_Unicode(' ') ); + aBuf.append( ' ' ); aBuf.appendAscii( "rotate( " ); aBuf.append( -fRotate ); aBuf.appendAscii( " )" ); } if( !aBuf.isEmpty() ) - aBuf.append( sal_Unicode(' ') ); + aBuf.append( ' ' ); aBuf.appendAscii( "translate( " ); aBuf.append( convertPixelToUnitString( rel_x ) ); - aBuf.append( sal_Unicode(' ') ); + aBuf.append( ' ' ); aBuf.append( convertPixelToUnitString( rel_y ) ); aBuf.appendAscii( " )" ); @@ -332,7 +332,7 @@ void DrawXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* >:: OUStringBuffer aBuf( 64 ); aBuf.appendAscii( "0 0 " ); aBuf.append( convPx2mmPrec2(elem.w)*100.0 ); - aBuf.append( sal_Unicode(' ') ); + aBuf.append( ' ' ); aBuf.append( convPx2mmPrec2(elem.h)*100.0 ); aProps[ "svg:viewBox" ] = aBuf.makeStringAndClear(); aProps[ "svg:d" ] = basegfx::tools::exportToSvgD( elem.PolyPoly, true, true, false ); diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx index 6b4681e33ddc..ac5450b98074 100644 --- a/sdext/source/pdfimport/tree/writertreevisiting.cxx +++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx @@ -170,7 +170,7 @@ void WriterXmlEmitter::fillFrameProps( DrawElement& rElem, if( fRotate != 0.0 ) { if( !aBuf.isEmpty() ) - aBuf.append( sal_Unicode(' ') ); + aBuf.append( ' ' ); aBuf.appendAscii( "rotate( " ); aBuf.append( -fRotate ); aBuf.appendAscii( " )" ); @@ -179,10 +179,10 @@ void WriterXmlEmitter::fillFrameProps( DrawElement& rElem, if( ! rElem.isCharacter ) { if( !aBuf.isEmpty() ) - aBuf.append( sal_Unicode(' ') ); + aBuf.append( ' ' ); aBuf.appendAscii( "translate( " ); aBuf.append( convertPixelToUnitString( rel_x ) ); - aBuf.append( sal_Unicode(' ') ); + aBuf.append( ' ' ); aBuf.append( convertPixelToUnitString( rel_y ) ); aBuf.appendAscii( " )" ); } @@ -272,7 +272,7 @@ void WriterXmlEmitter::visit( PolyPolyElement& elem, const std::list< Element* > OUStringBuffer aBuf( 64 ); aBuf.appendAscii( "0 0 " ); aBuf.append( convPx2mmPrec2(elem.w)*100.0 ); - aBuf.append( sal_Unicode(' ') ); + aBuf.append( ' ' ); aBuf.append( convPx2mmPrec2(elem.h)*100.0 ); aProps[ "svg:viewBox" ] = aBuf.makeStringAndClear(); aProps[ "svg:d" ] = basegfx::tools::exportToSvgD( elem.PolyPoly, true, true, false ); @@ -751,9 +751,9 @@ void WriterXmlOptimizer::optimizeTextElements(Element& rParent) && ! rCurGC.isRotatedOrSkewed() && ! rNextGC.isRotatedOrSkewed() && ! pNext->Text.isEmpty() - && pNext->Text[0] != sal_Unicode(' ') + && pNext->Text[0] != ' ' && ! pCur->Text.isEmpty() - && pCur->Text[pCur->Text.getLength() - 1] != sal_Unicode(' ') + && pCur->Text[pCur->Text.getLength() - 1] != ' ' ) { // check for new line in paragraph @@ -774,7 +774,7 @@ void WriterXmlOptimizer::optimizeTextElements(Element& rParent) // append a space unless there is a non breaking hyphen else if( aLastCode != 0x2011 ) { - pCur->Text.append( sal_Unicode( ' ' ) ); + pCur->Text.append( ' ' ); } } else // we're continuing the same line @@ -783,7 +783,7 @@ void WriterXmlOptimizer::optimizeTextElements(Element& rParent) // check for a small horizontal offset if( pCur->x + pCur->w + pNext->h*0.15 < pNext->x ) { - pCur->Text.append( sal_Unicode(' ') ); + pCur->Text.append( ' ' ); } } } diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx index 84eed9b31733..c02cd9a3cb4b 100644 --- a/sdext/source/pdfimport/wrapper/wrapper.cxx +++ b/sdext/source/pdfimport/wrapper/wrapper.cxx @@ -494,7 +494,7 @@ void Parser::parseFontFamilyName( FontAttributes& rResult ) const sal_Unicode* pCopy = rResult.familyName.getStr(); sal_Int32 nLen = rResult.familyName.getLength(); // parse out truetype subsets (e.g. BAAAAA+Thorndale) - if( nLen > 8 && pCopy[6] == sal_Unicode('+') ) + if( nLen > 8 && pCopy[6] == '+' ) { pCopy += 7; nLen -= 7; @@ -1028,7 +1028,7 @@ bool xpdf_ImportFromFile( const OUString& rURL, "getSystemPathFromFileURL(" << rURL << ") failed"); return false; } - OUString aDocName( rURL.copy( rURL.lastIndexOf( sal_Unicode('/') )+1 ) ); + OUString aDocName( rURL.copy( rURL.lastIndexOf( '/' )+1 ) ); // check for encryption, if necessary get password OUString aPwd( rPwd ); |