summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-14 21:40:34 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-14 21:40:34 (GMT)
commit8cfc00ad42d30a4999adb0234f0ca3ea4e630675 (patch)
tree698e4091b5daf060cf8d6db1c3de1763a495d9be
parentbe6f0d08832394a1574bf8ee2e477676c2fc2b5e (diff)
Add const'ref
-rw-r--r--mimetreeparser/src/viewer/objecttreeparser.cpp2
-rw-r--r--mimetreeparser/src/viewer/objecttreeparser.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/mimetreeparser/src/viewer/objecttreeparser.cpp b/mimetreeparser/src/viewer/objecttreeparser.cpp
index dd3d6eb..1093d7a 100644
--- a/mimetreeparser/src/viewer/objecttreeparser.cpp
+++ b/mimetreeparser/src/viewer/objecttreeparser.cpp
@@ -442,7 +442,7 @@ void ObjectTreeParser::extractNodeInfos(KMime::Content *curNode, bool isFirstTex
}
}
-void ObjectTreeParser::setPlainTextContent(QString plainTextContent)
+void ObjectTreeParser::setPlainTextContent(const QString &plainTextContent)
{
mPlainTextContent = plainTextContent;
}
diff --git a/mimetreeparser/src/viewer/objecttreeparser.h b/mimetreeparser/src/viewer/objecttreeparser.h
index 335ffd2..d0b7f84 100644
--- a/mimetreeparser/src/viewer/objecttreeparser.h
+++ b/mimetreeparser/src/viewer/objecttreeparser.h
@@ -339,7 +339,7 @@ public:
private:
void extractNodeInfos(KMime::Content *curNode, bool isFirstTextPart);
- void setPlainTextContent(QString plainTextContent);
+ void setPlainTextContent(const QString &plainTextContent);
/**
* Does the actual work for parseObjectTree. Unlike parseObjectTree(), this does not change the