src-highlite.git - src-highlite

index : src-highlite.git
src-highlite
summary refs log tree commit diff
path: root/src/lib/linebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/linebuffer.h')
-rw-r--r--src/lib/linebuffer.h 6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/linebuffer.h b/src/lib/linebuffer.h
index f55115b..e4d64d0 100644
--- a/src/lib/linebuffer.h
+++ b/src/lib/linebuffer.h
@@ -33,8 +33,8 @@ class LineBuffer
PostContents post; // to be generated after the line
public:
- LineBuffer();
- ~LineBuffer();
+ LineBuffer() {}
+ ~LineBuffer() {}
void output(const std::string &s) { buffer << s; }
void output_post(const std::string &s) { post.insert(s); }
@@ -42,7 +42,7 @@ class LineBuffer
const std::string getContents() const { return buffer.str(); }
const PostContents &getPostContents() const { return post; }
- bool empty() const;
+ bool empty() const { return (buffer.str().size() == 0 && post.size() == 0); }
};
typedef boost::shared_ptr<LineBuffer> LineBufferPtr;
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 17:09:08 +0000

AltStyle によって変換されたページ (->オリジナル) /