diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2012-07-14 18:00:06 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-07-16 11:33:05 +0100 |
commit | df645a2bd8a9b5463c74f261268f0d2de7245ccc (patch) | |
tree | 25d5df125c50111828d1e1f62edd47b716c11489 /vcl | |
parent | 0dde6d4a2d14dcb09187d476c4fbb80b6e008315 (diff) |
There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString.
Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index daa684d7d14a..aafea0564701 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -4866,13 +4866,13 @@ sal_Int32 PDFWriterImpl::getBestBuiltinFont( const Font& rFont ) OUString aFontName( rFont.GetName() ); aFontName = aFontName.toAsciiLowerCase(); - if( aFontName.indexOf( OUString( "times" ) ) != -1 ) + if( aFontName.indexOf( "times" ) != -1 ) nBest = 8; - else if( aFontName.indexOf( OUString( "courier" ) ) != -1 ) + else if( aFontName.indexOf( "courier" ) != -1 ) nBest = 0; - else if( aFontName.indexOf( OUString( "dingbats" ) ) != -1 ) + else if( aFontName.indexOf( "dingbats" ) != -1 ) nBest = 13; - else if( aFontName.indexOf( OUString( "symbol" ) ) != -1 ) + else if( aFontName.indexOf( "symbol" ) != -1 ) nBest = 12; if( nBest < 12 ) { |