diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-21 13:37:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-21 13:37:19 +0000 |
commit | 8b6824e3ec3ed7340db33bcbe592321b6afb0a00 (patch) | |
tree | 3c23f231d3126e85798f602be4b89c347d9ca36d /plugins/IEView/src/Template.h | |
parent | 0bb0ce1ac12784d4d119619dc6915666f590946d (diff) |
- warning fixes;
- memleak fixes;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@6154 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/Template.h')
-rw-r--r-- | plugins/IEView/src/Template.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/plugins/IEView/src/Template.h b/plugins/IEView/src/Template.h index 5f0f3c5626..a0a3c51dd7 100644 --- a/plugins/IEView/src/Template.h +++ b/plugins/IEView/src/Template.h @@ -96,28 +96,29 @@ public: class TemplateMap {
private:
static TemplateMap *mapList;
- char * name;
- char * filename;
- bool grouping;
- bool rtl;
- Template * entries;
- TemplateMap * next;
+ char *name;
+ char *filename;
+ bool grouping;
+ bool rtl;
+ Template *entries;
+ TemplateMap *next;
TemplateMap(const char *name);
- void addTemplate(const char *name, const char *text);
- void setFilename(const char *filename);
- void clear();
- static TemplateMap* add(const char *id, const char *filename);
- static void appendText(char **str, int *sizeAlloced, const char *fmt, ...);
- static TemplateMap* loadTemplateFile(const char *proto, const char *filename, bool onlyInfo);
+ void addTemplate(const char *name, const char *text);
+ void setFilename(const char *filename);
+ void clear();
+ static TemplateMap* add(const char *id, const char *filename);
+ static void appendText(char **str, int *sizeAlloced, const char *fmt, ...);
+ static TemplateMap* loadTemplateFile(const char *proto, const char *filename, bool onlyInfo);
public:
~TemplateMap();
- static Template * getTemplate(const char *id, const char *name);
- static TemplateMap *getTemplateMap(const char *id);
+ static Template* getTemplate(const char *id, const char *name);
+ static TemplateMap* getTemplateMap(const char *id);
static TemplateMap* loadTemplates(const char *id, const char *filename, bool onlyInfo);
- Template * getTemplate(const char *text);
- const char * getFilename();
- bool isGrouping();
- bool isRTL();
+ static void dropTemplates();
+ Template* getTemplate(const char *text);
+ const char* getFilename();
+ bool isGrouping();
+ bool isRTL();
};
|