Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2021-09-16 13:17:24 +0300
committerFabian Müller <80399010+fmoc@users.noreply.github.com>2021-09-17 11:37:57 +0300
commit4acec7bfdeeb798cdc7f32d6286dc7de07e17ef1 (patch)
treeef6b9c1cbf7323baf2e878c9ad1943326037f944 /src/common
parent857b5fd51b952efbcc907666b9a64c478ad934b9 (diff)
Work around compiler bug in old GCC versions
The previous use of template specialisation triggered a compiler bug on Debian 9 and CentOS 7, which use gcc 5.4 or earlier. As there is just one specialisation, the work-around is to change the function to be a static member function of the wrapping class of the enum. See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480
Diffstat (limited to 'src/common')
-rw-r--r--src/common/utility.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/common/utility.h b/src/common/utility.h
index 3d2e77bd7..fb3c22a5a 100644
--- a/src/common/utility.h
+++ b/src/common/utility.h
@@ -273,12 +273,6 @@ OCSYNC_EXPORT Q_DECLARE_LOGGING_CATEGORY(lcUtility)
{
return QMetaEnum::fromType<E>().valueToKeys(value);
}
- template <class E = void>
- QString enumDisplayName(E)
- {
- static_assert(std::is_same<E, void>::value, "Not implemented");
- Q_UNREACHABLE();
- }
}
/** @} */ // \addtogroup