Commit 4e7726e9 authored by Ronan's avatar Ronan
Browse files

fix(Message): const in container doesn't work on windows

parent 8d7b79f3
......@@ -147,9 +147,9 @@ void Message::setAppdata (const string &appData) {
d->appData = appData;
}
list<const shared_ptr<const Content> > Message::getContents () const {
list<shared_ptr<const Content> > Message::getContents () const {
L_D(const Message);
list<const shared_ptr<const Content> > contents;
list<shared_ptr<const Content> > contents;
for (const auto &content : d->contents)
contents.push_back(content);
return contents;
......
......@@ -71,7 +71,7 @@ public:
std::string getAppdata () const;
void setAppdata (const std::string &appData);
std::list<const std::shared_ptr<const Content> > getContents () const;
std::list<std::shared_ptr<const Content> > getContents () const;
void addContent (const std::shared_ptr<Content> &content);
void removeContent (const std::shared_ptr<const Content> &content);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment