[Libreoffice-commits] core.git: include/tools

Stephan Bergmann sbergman at redhat.com
Fri Jan 12 08:43:24 UTC 2018


 include/tools/stream.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ef22c4a0a99be5d2903fb9e9d09fc852cd791173
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jan 12 09:42:05 2018 +0100

    new[] vs. delete mismatch
    
    ...after e57a036939e27ecd173ace691689e26a6a33df8e "loplugin:useuniqueptr in
    tools,stoc,unotools"
    
    Change-Id: Ifb9a3a5f37895aa75edc7f4e90e8cfe47d79bca7

diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index cb211ddba607..bcc22137174a 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -144,7 +144,7 @@ private:
     sal_uInt64      m_nActPos;
 
     // buffer management
-    std::unique_ptr<sal_uInt8>
+    std::unique_ptr<sal_uInt8[]>
                     m_pRWBuf;     ///< Points to read/write buffer
     sal_uInt8*      m_pBufPos;    ///< m_pRWBuf + m_nBufActualPos
     sal_uInt16      m_nBufSize;   ///< Allocated size of buffer


More information about the Libreoffice-commits mailing list