Commit ae09c64f authored by Thiago Macieira's avatar Thiago Macieira
Browse files

Silence warning about unnecessary use of the containing namespace



ICC complained:
src/plugins/qmldesigner/designercore/include/propertycontainer.h(52): warning #1098: the qualifier on this friend declaration is ignored
      friend CORESHARED_EXPORT QDataStream &QmlDesigner::operator<<(QDataStream &stream, const PropertyContainer &propertyContainer);
                                            ^

The solution is to simply remove the namespace qualifier when the
class is already inside that namespace.

Change-Id: I2256ebe072b3f8db5288f72acb1388eabcb8325c
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 5444738c
......@@ -56,8 +56,8 @@ class CORESHARED_EXPORT ItemLibraryEntry
{
//friend class QmlDesigner::MetaInfo;
//friend class QmlDesigner::Internal::MetaInfoParser;
friend CORESHARED_EXPORT QDataStream& QmlDesigner::operator<<(QDataStream& stream, const ItemLibraryEntry &itemLibraryEntry);
friend CORESHARED_EXPORT QDataStream& QmlDesigner::operator>>(QDataStream& stream, ItemLibraryEntry &itemLibraryEntry);
friend CORESHARED_EXPORT QDataStream& operator<<(QDataStream& stream, const ItemLibraryEntry &itemLibraryEntry);
friend CORESHARED_EXPORT QDataStream& operator>>(QDataStream& stream, ItemLibraryEntry &itemLibraryEntry);
public:
ItemLibraryEntry();
......
......@@ -77,7 +77,7 @@ class CORESHARED_EXPORT ModelNode
friend CORESHARED_EXPORT uint qHash(const ModelNode & node);
friend CORESHARED_EXPORT QDebug operator<<(QDebug debug, const ModelNode &modelNode);
friend CORESHARED_EXPORT bool operator <(const ModelNode &firstNode, const ModelNode &secondNode);
friend CORESHARED_EXPORT QList<Internal::InternalNodePointer> QmlDesigner::toInternalNodeList(const QList<ModelNode> &nodeList);
friend CORESHARED_EXPORT QList<Internal::InternalNodePointer> toInternalNodeList(const QList<ModelNode> &nodeList);
friend class QmlDesigner::Model;
friend class QmlDesigner::AbstractView;
friend class QmlDesigner::NodeListProperty;
......
......@@ -49,8 +49,8 @@ CORESHARED_EXPORT QDataStream &operator>>(QDataStream &stream, PropertyContainer
class CORESHARED_EXPORT PropertyContainer
{
friend CORESHARED_EXPORT QDataStream &QmlDesigner::operator<<(QDataStream &stream, const PropertyContainer &propertyContainer);
friend CORESHARED_EXPORT QDataStream &QmlDesigner::operator>>(QDataStream &stream, PropertyContainer &propertyContainer);
friend CORESHARED_EXPORT QDataStream &operator<<(QDataStream &stream, const PropertyContainer &propertyContainer);
friend CORESHARED_EXPORT QDataStream &operator>>(QDataStream &stream, PropertyContainer &propertyContainer);
public:
PropertyContainer();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment