diff -r 4c7a353cf583 -r c8ecddbd99e9 src/basics.h --- a/src/basics.h Sat Jan 28 14:13:01 2017 +0200 +++ b/src/basics.h Sat Jan 28 14:14:28 2017 +0200 @@ -223,30 +223,30 @@ // Get the amount of elements in something. // template -int length(T(&)[N]) +int countof(T(&)[N]) { return N; } -static inline int length(const QString& string) +static inline int countof(const QString& string) { return string.length(); } template -int length(const QVector& vector) +int countof(const QVector& vector) { return vector.size(); } template -int length(const QList& vector) +int countof(const QList& vector) { return vector.size(); } template -int length(const std::initializer_list& vector) +int countof(const std::initializer_list& vector) { return vector.size(); }