Diffstat (limited to 'noncore/net/mailit/textparser.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mailit/textparser.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/noncore/net/mailit/textparser.cpp b/noncore/net/mailit/textparser.cpp index 3fa5f6e..e5c9f7c 100644 --- a/noncore/net/mailit/textparser.cpp +++ b/noncore/net/mailit/textparser.cpp @@ -21,3 +21,3 @@ -TextParser::TextParser(QString in, QString lineBreak) +TextParser::TextParser(const QString &in, const QString &lineBreak) { @@ -31,3 +31,3 @@ TextParser::TextParser(QString in, QString lineBreak) -TextParser::TextParser(QString in, QString lineBreak, QString sep) +TextParser::TextParser(const QString &in, const QString &lineBreak, const QString &sep) { @@ -62,3 +62,3 @@ void TextParser::createSeparators() /* Returns pos of given search criteria, -1 if not found */ -int TextParser::find(QString target, QChar sep, int pos, bool upperCase) +int TextParser::find(const QString &target, QChar sep, int pos, bool upperCase) { @@ -66,4 +66,4 @@ int TextParser::find(QString target, QChar sep, int pos, bool upperCase) t_splitElm parsstr; - QString pString; - + QString pString, pTarget; + pTarget = target; int atLine = 0, atPosElm = 0; @@ -79,3 +79,3 @@ int TextParser::find(QString target, QChar sep, int pos, bool upperCase) pString=parsstr.str.upper(); - target=target.upper(); + pTarget=pTarget.upper(); } @@ -85,3 +85,3 @@ int TextParser::find(QString target, QChar sep, int pos, bool upperCase) } - if ((pString == target) && (parsstr.separator == sep)) + if ((pString == pTarget) && (parsstr.separator == sep)) { |