diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-29 08:46:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-29 09:57:15 +0100 |
commit | 933660e591211f06a1be43e83c64ad1e8529bc2f (patch) | |
tree | adc0ede7c30c9ee5af7b75e649c806831f73da41 /sdext | |
parent | b9c9c70157e7bc5b868437ab6bda2b21ba34c627 (diff) |
loplugin:stringconstant look for unnecessary OString constructor use
and tweak the methods in check.hxx to make them more flexible when
called with
dc.Class(xxx ? "foo" : "bar")
Change-Id: I881fe628f22121ced4d8849715d6b1c92b092da1
Reviewed-on: https://gerrit.libreoffice.org/64207
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/test/pdfunzip.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/test/pdfunzip.cxx b/sdext/source/pdfimport/test/pdfunzip.cxx index 3e5a452dee13..17807af628d6 100644 --- a/sdext/source/pdfimport/test/pdfunzip.cxx +++ b/sdext/source/pdfimport/test/pdfunzip.cxx @@ -508,7 +508,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv ) { if( aFile.getLength() > 4 ) { - if( aFile.matchIgnoreAsciiCase( OString( ".pdf" ), aFile.getLength()-4 ) ) + if( aFile.matchIgnoreAsciiCase( ".pdf", aFile.getLength()-4 ) ) aOutFile.append( pInFile, aFile.getLength() - 4 ); else aOutFile.append( aFile ); |