diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:07:31 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:10:35 +0200 |
commit | 64b993e046f23baaacaff1572b7d2a816588b5ef (patch) | |
tree | 237dce36a1d4787d168a0520839f6aab22500487 /sdext/source/pdfimport/pdfparse/pdfentries.cxx | |
parent | warn when rewriter should modify something involving a macro (diff) | |
download | core-64b993e046f23baaacaff1572b7d2a816588b5ef.tar.gz core-64b993e046f23baaacaff1572b7d2a816588b5ef.zip |
finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.
Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
Diffstat (limited to 'sdext/source/pdfimport/pdfparse/pdfentries.cxx')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 90b4de6a4d1f..52117d3b6a00 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -967,13 +967,13 @@ bool PDFTrailer::emit( EmitContext& rWriteContext ) const // write 20 char entry of form // 0000offset 00gen n\r\n aBuf.setLength( 0 ); - OString aOffset( OString::valueOf( sal_Int64(section_begin->second.second ) ) ); + OString aOffset( OString::number( section_begin->second.second ) ); int nPad = 10 - aOffset.getLength(); for( int i = 0; i < nPad; i++ ) aBuf.append( '0' ); aBuf.append( aOffset ); aBuf.append( ' ' ); - OString aGeneration( OString::valueOf( sal_Int32(section_begin->second.first ) ) ); + OString aGeneration( OString::number( section_begin->second.first ) ); nPad = 5 - aGeneration.getLength(); for( int i = 0; i < nPad; i++ ) aBuf.append( '0' ); @@ -991,7 +991,7 @@ bool PDFTrailer::emit( EmitContext& rWriteContext ) const return false; if( ! rWriteContext.write( "startxref\n", 10 ) ) return false; - OString aOffset( OString::valueOf( sal_Int32(nXRefPos) ) ); + OString aOffset( OString::number( nXRefPos ) ); if( ! rWriteContext.write( aOffset.getStr(), aOffset.getLength() ) ) return false; return rWriteContext.write( "\n%%EOF\n", 7 ); |