mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-04-20 01:43:12 +02:00
Move 2 method definitions to the cpp file.
This commit is contained in:
parent
01c43bf369
commit
5ed9081c69
@ -1,2 +1,15 @@
|
||||
#include "paged_article_entry.h"
|
||||
|
||||
PagedArticleEntry::PagedArticleEntry() {
|
||||
file_cache = new FileCache();
|
||||
}
|
||||
|
||||
PagedArticleEntry::~PagedArticleEntry() {
|
||||
for (std::map<String, String *>::iterator it = pages.begin(); it != pages.end(); ++it) {
|
||||
delete ((*it).second);
|
||||
}
|
||||
|
||||
pages.clear();
|
||||
|
||||
delete file_cache;
|
||||
}
|
||||
|
@ -20,18 +20,8 @@ public:
|
||||
std::map<String, String *> pages;
|
||||
FileCache *file_cache;
|
||||
|
||||
PagedArticleEntry() {
|
||||
file_cache = new FileCache();
|
||||
}
|
||||
~PagedArticleEntry() {
|
||||
for (std::map<String, String *>::iterator it = pages.begin(); it != pages.end(); ++it) {
|
||||
delete ((*it).second);
|
||||
}
|
||||
|
||||
pages.clear();
|
||||
|
||||
delete file_cache;
|
||||
}
|
||||
PagedArticleEntry();
|
||||
~PagedArticleEntry();
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user