summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-06-02 09:13:43 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-06-04 20:06:08 (GMT)
commit0df1623c9363d52a2b04457233dcf2c64319b03c (patch)
tree7716f420ced7c05cfa50d3e12d91d02624361cff /src/classdef.cpp
parentfd1111503cd3e403db3784d03530e6ec3ac37032 (diff)
downloadDoxygen-0df1623c9363d52a2b04457233dcf2c64319b03c.zip
Doxygen-0df1623c9363d52a2b04457233dcf2c64319b03c.tar.gz
Doxygen-0df1623c9363d52a2b04457233dcf2c64319b03c.tar.bz2
Refactor: modernize configuration values
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index 5e300ce..04e057b 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -1848,16 +1848,15 @@ void ClassDefImpl::writeIncludeFilesForSlice(OutputList &ol) const
if (m_impl->incInfo)
{
QCString nm;
- QStrList paths = Config_getList(STRIP_FROM_PATH);
- if (!paths.isEmpty() && m_impl->incInfo->fileDef)
+ const StringVector &paths = Config_getList(STRIP_FROM_PATH);
+ if (!paths.empty() && m_impl->incInfo->fileDef)
{
QCString abs = m_impl->incInfo->fileDef->absFilePath();
- const char *s = paths.first();
QCString potential;
unsigned int length = 0;
- while (s)
+ for (const auto &s : paths)
{
- QFileInfo info(s);
+ QFileInfo info(s.c_str());
if (info.exists())
{
QCString prefix = info.absFilePath().utf8();
@@ -1872,7 +1871,6 @@ void ClassDefImpl::writeIncludeFilesForSlice(OutputList &ol) const
length = prefix.length();
potential = abs.right(abs.length() - prefix.length());
}
- s = paths.next();
}
}