diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-07-22 16:10:29 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:39 -0300 |
commit | 9a8531bfd6f2d05feb941aa368e61728471a351e (patch) | |
tree | 0132afb91edf35365ede4b7136e1abcd27d1dfb5 /libpyside/dynamicqmetaobject_p.h | |
parent | 238222df8e3a2a5f00652ba47361cb6d9d1e0a16 (diff) |
Small optimizations on libpyside.
Diffstat (limited to 'libpyside/dynamicqmetaobject_p.h')
-rw-r--r-- | libpyside/dynamicqmetaobject_p.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libpyside/dynamicqmetaobject_p.h b/libpyside/dynamicqmetaobject_p.h index d8a2b6f0d..a4a17a12f 100644 --- a/libpyside/dynamicqmetaobject_p.h +++ b/libpyside/dynamicqmetaobject_p.h @@ -43,8 +43,8 @@ namespace PySide MethodData(QMetaMethod::MethodType mtype, const char* signature, const char* type = 0); void clear(); bool isValid() const; - QByteArray signature() const; - QByteArray type() const; + const QByteArray& signature() const { return m_signature; } + const QByteArray& type() const { return m_type; } QMetaMethod::MethodType methodType() const; bool operator==(const MethodData& other) const; @@ -60,7 +60,7 @@ namespace PySide public: PropertyData(); PropertyData(const char* name, int notifyId=0, PySideProperty* data = 0); - QByteArray name() const; + const QByteArray& name() const { return m_name; } QByteArray type() const; uint flags() const; bool isValid() const; @@ -73,6 +73,12 @@ namespace PySide int m_notifyId; PySideProperty* m_data; }; + +inline bool MethodData::operator==(const MethodData& other) const +{ + return m_mtype == other.methodType() && m_signature == other.signature(); +} + } #endif |