author | Lorenzo Bettini <bettini@dsi.unifi.it> | 2007年06月08日 10:11:29 +0000 |
---|---|---|
committer | Lorenzo Bettini <bettini@dsi.unifi.it> | 2007年06月08日 10:11:29 +0000 |
commit | e9ea18fdc4f4f57b9ab8c9a4c6c182b0a1919b07 (patch) | |
tree | 92186c3de0146a0fa595e64b6a6aca1417078c0b /src/lib/linebuffer.h | |
parent | 6fcee8f6e2f2212855b5b3e3ea5db76dc5d48cc3 (diff) | |
download | src-highlite-e9ea18fdc4f4f57b9ab8c9a4c6c182b0a1919b07.tar.gz |
-rw-r--r-- | src/lib/linebuffer.h | 6 |
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; |