summaryrefslogtreecommitdiff
path: root/src/preview/Comment.h
diff options
context:
space:
mode:
authorSimon 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)
commite6e23669eea8768ec004c16437c67717b66fb1a0 (patch)
treed78783f0bf1ad85f926503c32a8f8893c33d8cc5 /src/preview/Comment.h
parent2e48bd149ce70eb5e0f5ade518ff7709708ef49e (diff)
downloadpowder-e6e23669eea8768ec004c16437c67717b66fb1a0.zip
powder-e6e23669eea8768ec004c16437c67717b66fb1a0.tar.gz
Scrollable comments
Diffstat (limited to 'src/preview/Comment.h')
-rw-r--r--src/preview/Comment.h12
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)
{
}
};