diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-17 10:05:05 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-17 10:05:05 +0000 |
commit | 702f2b6951058a0569f0210a19545c79bcb5b511 (patch) | |
tree | 3c0ccc84ea301f551b09df916b1be14415b651a6 /plugins/IEView/src/Template.cpp | |
parent | be2dabbdefed00b5f9e6cc112fd2d95175da0089 (diff) |
one more part of replacing own functions to core functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@4068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/Template.cpp')
-rw-r--r-- | plugins/IEView/src/Template.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/IEView/src/Template.cpp b/plugins/IEView/src/Template.cpp index ac6ced05d0..10946b7acc 100644 --- a/plugins/IEView/src/Template.cpp +++ b/plugins/IEView/src/Template.cpp @@ -40,7 +40,7 @@ Token::Token(int type, const char *text, int escape) { this->type = type;
this->escape = escape;
if (text!=NULL) {
- this->text = Utils::dupString(text);
+ this->text = mir_strdup(text);
} else {
this->text = NULL;
}
@@ -75,8 +75,8 @@ const char *Token::getText() { Template::Template(const char *name, const char *text) {
next = NULL;
tokens = NULL;
- this->text = Utils::dupString(text);
- this->name = Utils::dupString(name);
+ this->text = mir_strdup(text);
+ this->name = mir_strdup(name);
tokenize();
}
@@ -155,7 +155,7 @@ static TokenDef tokenNames[] = { void Template::tokenize() {
if (text!=NULL) {
// debugView->writef("Tokenizing: %s<br>---<br>", text);
- char *str = Utils::dupString(text);
+ char *str = mir_strdup(text);
Token *lastToken = NULL;
int lastTokenType = Token::PLAIN;
int lastTokenEscape = 0;
@@ -208,7 +208,7 @@ void Template::tokenize() { lastTokenType = newTokenType;
i += newTokenSize;
}
- delete str;
+ mir_free(str);
}
}
@@ -222,7 +222,7 @@ TemplateMap::TemplateMap(const char *name) { entries = NULL;
next = NULL;
filename = NULL;
- this->name = Utils::dupString(name);
+ this->name = mir_strdup(name);
this->grouping = false;
this->rtl = false;
}
@@ -439,7 +439,7 @@ void TemplateMap::setFilename(const char *filename) { if (this->filename != NULL) {
delete this->filename;
}
- this->filename = Utils::dupString(filename);
+ this->filename = mir_strdup(filename);
Utils::convertPath(this->filename);
}
|