diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-27 21:08:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-28 16:51:51 +0200 |
commit | ff41cf1b8dbeb36b8824257acb5c5ba272415108 (patch) | |
tree | f10fd5ac3dac8b21ab0540a2fc66ee3ebaf16a7e /vcl | |
parent | 9c9e5b5ee7f1144c20624ac9471354a218638175 (diff) |
loplugin:oncevar
Change-Id: I3c014f53607a849c743a2fd1aa47d03d5af978fb
Reviewed-on: https://gerrit.libreoffice.org/76495
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/notebookbar.cxx | 3 | ||||
-rw-r--r-- | vcl/source/gdi/vectorgraphicdata.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/control/notebookbar.cxx b/vcl/source/control/notebookbar.cxx index 5d960f1d81d6..8fefed9c5841 100644 --- a/vcl/source/control/notebookbar.cxx +++ b/vcl/source/control/notebookbar.cxx @@ -32,8 +32,7 @@ static bool doesFileExist(const OUString& sUIDir, const OUString& sUIFile) { OUString sUri = sUIDir + sUIFile; osl::File file(sUri); - sal_uInt32 flag = 0; - return( file.open(flag) == osl::FileBase::E_None ); + return( file.open(0) == osl::FileBase::E_None ); } /** diff --git a/vcl/source/gdi/vectorgraphicdata.cxx b/vcl/source/gdi/vectorgraphicdata.cxx index 19de20690e06..5beef667e367 100644 --- a/vcl/source/gdi/vectorgraphicdata.cxx +++ b/vcl/source/gdi/vectorgraphicdata.cxx @@ -290,8 +290,7 @@ const BitmapEx& VectorGraphicData::getReplacement() const BitmapChecksum VectorGraphicData::GetChecksum() const { - BitmapChecksum nRet = 0; - return vcl_get_checksum(nRet, maVectorGraphicDataArray.getConstArray(), maVectorGraphicDataArray.getLength()); + return vcl_get_checksum(0, maVectorGraphicDataArray.getConstArray(), maVectorGraphicDataArray.getLength()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |