aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r--src/PerLine.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index 762891ee3..2ea3f0ce4 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -357,6 +357,10 @@ std::unique_ptr<char[]>AllocateAnnotation(size_t length, int style) {
LineAnnotation::~LineAnnotation() {
}
+bool LineAnnotation::Empty() const noexcept {
+ return annotations.Length() == 0;
+}
+
void LineAnnotation::Init() {
ClearAll();
}