Utils: Properly name withNtfsPermissions()

Change-Id: I759e702b63f8bed9384ccbfae6345f858e50830b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Andre Hartmann
2018-06-05 14:22:26 +02:00
committed by André Hartmann
parent f8e88e8ce4
commit 85ffe78e96
4 changed files with 8 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ class QWidget;
QTCREATOR_UTILS_EXPORT QDebug operator<<(QDebug dbg, const Utils::FileName &c);
// for withNTFSPermissions
// for withNtfsPermissions
#ifdef Q_OS_WIN
extern Q_CORE_EXPORT int qt_ntfs_permission_lookup;
#endif
@@ -135,7 +135,7 @@ public:
#ifdef Q_OS_WIN
template <typename T>
T withNTFSPermissions(const std::function<T()> &task)
T withNtfsPermissions(const std::function<T()> &task)
{
qt_ntfs_permission_lookup++;
T result = task();
@@ -144,12 +144,12 @@ T withNTFSPermissions(const std::function<T()> &task)
}
template <>
QTCREATOR_UTILS_EXPORT void withNTFSPermissions(const std::function<void()> &task);
QTCREATOR_UTILS_EXPORT void withNtfsPermissions(const std::function<void()> &task);
#else // Q_OS_WIN
template <typename T>
T withNTFSPermissions(const std::function<T()> &task)
T withNtfsPermissions(const std::function<T()> &task)
{
return task();
}