summaryrefslogtreecommitdiffstats
path: root/qtools/qgvector.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-11-27 10:34:55 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-11-27 10:34:55 (GMT)
commitb6101af96fb793d9e9bdc0c34f0690545f3a1e56 (patch)
tree75537b0958a7d24c92b2b06ac64f3e20914faa6c /qtools/qgvector.cpp
parent8c7b1352474e4da5024cfc3ecc25a486b1d4ef2a (diff)
downloadDoxygen-b6101af96fb793d9e9bdc0c34f0690545f3a1e56.zip
Doxygen-b6101af96fb793d9e9bdc0c34f0690545f3a1e56.tar.gz
Doxygen-b6101af96fb793d9e9bdc0c34f0690545f3a1e56.tar.bz2
Keyword register (in code) is deprecated since C++11
The keyword `register` is deprecated since C++11: - for the Darwin platform it was already filtered (-Wno-deprecated-register) - CLan emits: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
Diffstat (limited to 'qtools/qgvector.cpp')
-rw-r--r--qtools/qgvector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtools/qgvector.cpp b/qtools/qgvector.cpp
index 63cce64..2d08ede 100644
--- a/qtools/qgvector.cpp
+++ b/qtools/qgvector.cpp
@@ -411,8 +411,8 @@ void QGVector::sort() // sort vector
{
if ( count() == 0 ) // no elements
return;
- register Item *start = &vec[0];
- register Item *end = &vec[len-1];
+ Item *start = &vec[0];
+ Item *end = &vec[len-1];
Item tmp;
while ( TRUE ) { // put all zero elements behind
while ( start < end && *start != 0 )