[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:21:05 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=440ec7a
The following commit has been merged in the master branch:
commit 440ec7a3951d80d3f2c063b844df2065cae552f9
Author: Lasath Fernando <kde at lasath.org>
Date: Thu Feb 2 12:29:46 2012 +1100
Make Message::property() take const char* rather than QString.
---
lib/message.cpp | 8 ++++----
lib/message.h | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/message.cpp b/lib/message.cpp
index 508f7d7..389434b 100644
--- a/lib/message.cpp
+++ b/lib/message.cpp
@@ -64,12 +64,12 @@ QString Message::finalizedMessage() const
return msg;
}
-QVariant Message::property(const QString &name) const
+QVariant Message::property(const char *name) const
{
- return m_properties[name];
+ return m_properties[QLatin1String(name)];
}
-void Message::setProperty(const QString &name, const QVariant &value)
+void Message::setProperty(const char *name, const QVariant& value)
{
- m_properties[name]=value;
+ m_properties[QLatin1String(name)] = value;
}
diff --git a/lib/message.h b/lib/message.h
index 5b4a8f3..aaf69e9 100644
--- a/lib/message.h
+++ b/lib/message.h
@@ -33,8 +33,8 @@ public:
QString finalizedMessage() const;
- QVariant property(const QString &name) const;
- void setProperty(const QString &name, const QVariant &value);
+ QVariant property(const char *name) const;
+ void setProperty(const char *name, const QVariant &value);
private:
Tp::Message m_originalMessage;
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list