mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-06 17:51:36 +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"
|
#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;
|
std::map<String, String *> pages;
|
||||||
FileCache *file_cache;
|
FileCache *file_cache;
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user