forked from qt-creator/qt-creator
Make some qHash and comparison operators overloads hidden friends
Restricts lookup scope more to necessary bits. Change-Id: Ia42c95aaa70534843b7f6a90bfc56d2a1202c612 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -46,6 +46,10 @@
|
||||
#include <QJsonValue>
|
||||
#include <QPluginLoader>
|
||||
|
||||
using namespace ExtensionSystem::Internal;
|
||||
|
||||
namespace ExtensionSystem {
|
||||
|
||||
/*!
|
||||
\class ExtensionSystem::PluginDependency
|
||||
\inheaderfile extensionsystem/pluginspec.h
|
||||
@@ -148,14 +152,11 @@
|
||||
\sa PluginSpec::argumentDescriptions()
|
||||
*/
|
||||
|
||||
using namespace ExtensionSystem;
|
||||
using namespace ExtensionSystem::Internal;
|
||||
|
||||
/*!
|
||||
\fn uint ExtensionSystem::qHash(const ExtensionSystem::PluginDependency &value)
|
||||
\internal
|
||||
*/
|
||||
Utils::QHashValueType ExtensionSystem::qHash(const PluginDependency &value)
|
||||
Utils::QHashValueType qHash(const PluginDependency &value)
|
||||
{
|
||||
return qHash(value.name);
|
||||
}
|
||||
@@ -1125,3 +1126,5 @@ void PluginSpecPrivate::kill()
|
||||
plugin = nullptr;
|
||||
state = PluginSpec::Deleted;
|
||||
}
|
||||
|
||||
} // ExtensionSystem
|
||||
|
||||
Reference in New Issue
Block a user