[sdk/kdiff3/1.12] src: Drop uneeded intialization.

Michael Reeves <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 9ac3961d6a0d24cb3c424865e61aab8b5bfe37e8 by Michael Reeves.
Committed on 22/07/2026 at 01:30.
Pushed by mreeves into branch '1.12'.

Drop uneeded intialization.

The assert in SourceData::getSizeLines()  appears to  have been debuging residual.

M  +1    -1    src/SourceData.h

https://invent.kde.org/sdk/kdiff3/-/commit/9ac3961d6a0d24cb3c424865e61aab8b5bfe37e8

diff --git a/src/SourceData.h b/src/SourceData.h
index a0b49d5c..4e0ef57d 100644
--- a/src/SourceData.h
+++ b/src/SourceData.h
@@ -89,7 +89,7 @@ class SourceData
         friend SourceData;
         bool mHasBOM = false;
 
-        std::unique_ptr<char[]> m_pBuf = std::make_unique<char[]>(0); // TODO: Phase out needlessly wastes memory and time by keeping second copy of file data.
+        std::unique_ptr<char[]> m_pBuf; // TODO: Phase out needlessly wastes memory and time by keeping second copy of file data.
         quint64 mDataSize = 0;
         qint64 mLineCount = 0; // Number of lines in m_pBuf1 and size of m_v1, m_dv12 and m_dv13
         QSharedPointer<QString> m_unicodeBuf=QSharedPointer<QString>::create();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.