diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-22 14:13:24 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-22 14:13:24 (GMT) |
| commit | e6e23669eea8768ec004c16437c67717b66fb1a0 (patch) | |
| tree | d78783f0bf1ad85f926503c32a8f8893c33d8cc5 /src/preview/Comment.h | |
| parent | 2e48bd149ce70eb5e0f5ade518ff7709708ef49e (diff) | |
| download | powder-e6e23669eea8768ec004c16437c67717b66fb1a0.zip powder-e6e23669eea8768ec004c16437c67717b66fb1a0.tar.gz | |
Scrollable comments
Diffstat (limited to 'src/preview/Comment.h')
| -rw-r--r-- | src/preview/Comment.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/preview/Comment.h b/src/preview/Comment.h index c9a807c..bf4b8d4 100644 --- a/src/preview/Comment.h +++ b/src/preview/Comment.h @@ -8,6 +8,8 @@ #ifndef COMMENT_H_ #define COMMENT_H_ +#include <string> + class SaveComment { public: @@ -15,7 +17,15 @@ public: std::string authorName; std::string comment; SaveComment(int userID, std::string username, std::string commentText): - authorID(userID), authorName(username), comment(commentText) + authorID(userID), authorName(username), comment(commentText) + { + } + SaveComment(const SaveComment & comment): + authorID(comment.authorID), authorName(comment.authorName), comment(comment.comment) + { + } + SaveComment(const SaveComment * comment): + authorID(comment->authorID), authorName(comment->authorName), comment(comment->comment) { } }; |
