Commit 6cc68e8c authored by Michael Reeves's avatar Michael Reeves

cleanup

parent 6557f35d
......@@ -51,7 +51,7 @@ find_package(
option(ENABLE_CLANG_TIDY "Run clang-tidy if available and cmake version >=3.6" OFF)
set(KDiff3_LIBRARIES ${Qt5PrintSupport_LIBRARIES} KF5::I18n KF5::CoreAddons KF5::Crash KF5::IconThemes )
set(KDiff3_LIBRARIES ${Qt5PrintSupport_LIBRARIES} KF5::I18n KF5::CoreAddons KF5::IconThemes )
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
#Adjust clang specific warnings
......
......@@ -99,17 +99,15 @@ class LineData
QString::fromRawData allows us to create a light weight QString backed by the buffer memmory.
*/
Q_REQUIRED_RESULT inline const QString getLine() const { return QString::fromRawData(mBuffer->data() + mOffset, mSize); }
//inline void setLine(const QString& line) { pLine = line;}
Q_REQUIRED_RESULT const QSharedPointer<QString>& getBuffer() const { return mBuffer; }
Q_REQUIRED_RESULT inline const QSharedPointer<QString>& getBuffer() const { return mBuffer; }
Q_REQUIRED_RESULT inline qint64 getOffset() const { return mOffset; }
Q_REQUIRED_RESULT int width(int tabSize) const; // Calcs width considering tabs.
//int occurrences;
bool whiteLine() const { return mFirstNonWhiteChar == mSize - 1; }
inline bool whiteLine() const { return mFirstNonWhiteChar == mSize - 1; }
bool isPureComment() const { return bContainsPureComment; }
void setPureComment(const bool bPureComment) { bContainsPureComment = bPureComment; }
inline bool isPureComment() const { return bContainsPureComment; }
inline void setPureComment(const bool bPureComment) { bContainsPureComment = bPureComment; }
static bool equal(const LineData& l1, const LineData& l2, bool bStrict);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment