summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-31 09:24:44 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-31 09:24:44 (GMT)
commite0c9dab8cb981172c5de81f5963e28db67f1b295 (patch)
treedd78e82f54a7ed87915a7d5100437cd42ac0c415 /src/client/Client.cpp
parent708d52bcc5f0e13fa6540751e2402ccfdf02bec7 (diff)
downloadpowder-e0c9dab8cb981172c5de81f5963e28db67f1b295.zip
powder-e0c9dab8cb981172c5de81f5963e28db67f1b295.tar.gz
Move more SDL dependancies out of program, OpenGLCanvas for JNI and JNI methods.
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index c5e2925..886dfbb 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -803,10 +803,10 @@ Thumbnail * Client::GetPreview(int saveID, int saveDate)
return new Thumbnail(saveID, saveDate, (pixel *)malloc((128*128) * PIXELSIZE), ui::Point(128, 128));
}
-std::vector<Comment*> * Client::GetComments(int saveID, int start, int count)
+std::vector<SaveComment*> * Client::GetComments(int saveID, int start, int count)
{
lastError = "";
- std::vector<Comment*> * commentArray = new std::vector<Comment*>();
+ std::vector<SaveComment*> * commentArray = new std::vector<SaveComment*>();
std::stringstream urlStream;
char * data;
@@ -827,7 +827,7 @@ std::vector<Comment*> * Client::GetComments(int saveID, int start, int count)
json::String tempUsername = commentsArray[j]["Username"];
json::String tempComment = commentsArray[j]["Text"];
commentArray->push_back(
- new Comment(
+ new SaveComment(
tempUserID.Value(),
tempUsername.Value(),
tempComment.Value()