summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-19 20:49:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-20 07:59:53 +0200
commit9d936de849f1d2267dc733d38ff66d66490b04f7 (patch)
tree04dde3b59c7eaddd83849b9b4cd9e4aef70c4caf /extensions
parent4ba5b003b594f9eb6c9b185208bdb72aef8273d0 (diff)
clang-tidy readability-delete-null-pointer
Change-Id: Ib47fc58f1cdfdd54adff07687c56198aa6f2091e Reviewed-on: https://gerrit.libreoffice.org/62029 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/scanner/sane.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx
index 167d6ba97b20..0adeb593d695 100644
--- a/extensions/source/scanner/sane.cxx
+++ b/extensions/source/scanner/sane.cxx
@@ -875,8 +875,7 @@ bool Sane::Start( BitmapTransporter& rBitmap )
p_cancel( maHandle );
CheckConsistency( "sane_cancel" );
}
- if( pBuffer )
- delete [] pBuffer;
+ delete [] pBuffer;
ReloadOptions();