diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-21 15:04:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-22 12:43:56 +0200 |
commit | 78490b45c771a4c9632b324922f2c8e83f06153b (patch) | |
tree | 0e74de3a28bce5a7300f39aa36378d35eedc0afe /include/tools/stream.hxx | |
parent | 5c147fc5fe0e77838b8e9bebd4ff215a80946980 (diff) |
pvs-studio: V668 no sense testing against null as memory was allocated by new
category V668 complete
Change-Id: I986d4cb89a7c72d54d71ea01fc598a9958deee24
Reviewed-on: https://gerrit.libreoffice.org/62138
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/tools/stream.hxx')
-rw-r--r-- | include/tools/stream.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx index 5f199f64d601..4da1d2e0adb7 100644 --- a/include/tools/stream.hxx +++ b/include/tools/stream.hxx @@ -637,7 +637,7 @@ protected: /// AllocateMemory must update pBuf accordingly /// - pBuf: Address of new block - bool AllocateMemory( std::size_t nSize ); + void AllocateMemory( std::size_t nSize ); /// ReAllocateMemory must update the following variables: /// - pBuf: Address of new block |