diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-14 16:55:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-16 14:19:09 +0000 |
commit | a217e0d012919a4cc06ee87aa39ee49350aeb558 (patch) | |
tree | d22f58e0d58d70457b86b018370edf104affa19f /hwpfilter/source/htags.cxx | |
parent | 1a98de0ee1438c1a0dd4c59cf1016d81d8b1b7f3 (diff) |
clang-cl loplugin: hwpfilter
Change-Id: I63677cea6ee2cec0589bd853ca9b135931df63d4
Reviewed-on: https://gerrit.libreoffice.org/29863
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'hwpfilter/source/htags.cxx')
-rw-r--r-- | hwpfilter/source/htags.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/htags.cxx b/hwpfilter/source/htags.cxx index 044f7d2a6a61..7a9ebabe82be 100644 --- a/hwpfilter/source/htags.cxx +++ b/hwpfilter/source/htags.cxx @@ -120,7 +120,7 @@ void OlePicture::Read(HWPFile & hwpf) char tname[200]; wchar_t wtname[200]; tmpnam(tname); - if (0 == (fp = fopen(tname, "wb"))) + if (nullptr == (fp = fopen(tname, "wb"))) { delete [] data; return; @@ -129,10 +129,10 @@ void OlePicture::Read(HWPFile & hwpf) delete [] data; fclose(fp); MultiByteToWideChar(CP_ACP, 0, tname, -1, wtname, 200); - if( StgOpenStorage(wtname, NULL, + if( StgOpenStorage(wtname, nullptr, STGM_READWRITE|STGM_SHARE_EXCLUSIVE|STGM_TRANSACTED, - NULL, 0, &pis) != S_OK ) { - pis = 0; + nullptr, 0, &pis) != S_OK ) { + pis = nullptr; unlink(tname); return; } |