Created
June 25, 2014 02:56
-
-
Save elleryq/32b452be1ebc0a430e28 to your computer and use it in GitHub Desktop.
Simple patch for Feednix. This patch fix compile error in clang.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/FeedlyProvider.cpp b/src/FeedlyProvider.cpp | |
| index 5303901..d345613 100644 | |
| --- a/src/FeedlyProvider.cpp | |
| +++ b/src/FeedlyProvider.cpp | |
| @@ -194,8 +194,14 @@ const std::vector<PostData>* FeedlyProvider::giveStreamPosts(const std::string& | |
| return NULL; | |
| } | |
| - for(unsigned int i = 0; i < root["items"].size(); i++) | |
| - feeds.push_back(PostData{root["items"][i]["summary"]["content"].asString(), root["items"][i]["title"].asString(), root["items"][i]["id"].asString(), root["items"][i]["originId"].asString()}); | |
| + for(unsigned int i = 0; i < root["items"].size(); i++) { | |
| + PostData postData; | |
| + postData.content = root["items"][i]["summary"]["content"].asString(); | |
| + postData.title = root["items"][i]["id"].asString(); | |
| + postData.id = root["items"][i]["title"].asString(); | |
| + postData.originURL = root["items"][i]["originId"].asString(); | |
| + feeds.push_back(postData); | |
| + } | |
| data.close(); | |
| return &(feeds); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment