summaryrefslogtreecommitdiff
path: root/shell/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-14 16:52:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-15 08:57:39 +0000
commit85876a11ceb9bf144ae8365ff3a9fedd8c363ef2 (patch)
tree4db05eaf14aaadc4c8bad4199dbfad3cb6106190 /shell/qa
parentcb97267f5676b7790806dc15d17f2a6523232ccc (diff)
clang-cl loplugin: shell
Change-Id: I98d2e5154270b795cdd11653ecfff2abd8dda294 Reviewed-on: https://gerrit.libreoffice.org/29851 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell/qa')
-rw-r--r--shell/qa/zip/ziptest.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/qa/zip/ziptest.cxx b/shell/qa/zip/ziptest.cxx
index e89d2e8cfd03..a09e85b878cc 100644
--- a/shell/qa/zip/ziptest.cxx
+++ b/shell/qa/zip/ziptest.cxx
@@ -61,7 +61,7 @@ public:
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
-Test::Test() : documentName(), pStream(NULL)
+Test::Test() : documentName(), pStream(nullptr)
{
const char* pSrcRoot = getenv( "SRC_ROOT" );
if (pSrcRoot)
@@ -72,14 +72,14 @@ Test::Test() : documentName(), pStream(NULL)
documentName.append("shell/qa/zip/simpledocument.odt");
// Create an IStream pointer from the file
- HANDLE hFile = CreateFileA(documentName.c_str(), GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL);
+ HANDLE hFile = CreateFileA(documentName.c_str(), GENERIC_READ, 0, nullptr, OPEN_EXISTING, 0, nullptr);
- DWORD dwFileSize = GetFileSize(hFile, NULL);
+ DWORD dwFileSize = GetFileSize(hFile, nullptr);
HGLOBAL hGlobal = GlobalAlloc(GMEM_MOVEABLE, dwFileSize);
LPVOID pvData = GlobalLock(hGlobal);
DWORD dwBytesRead = 0;
- BOOL bRead = ReadFile(hFile, pvData, dwFileSize, &dwBytesRead, NULL);
+ BOOL bRead = ReadFile(hFile, pvData, dwFileSize, &dwBytesRead, nullptr);
CPPUNIT_ASSERT_MESSAGE("FileStream: ReadFile error.", bRead);
GlobalUnlock(hGlobal);
CloseHandle(hFile);