aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangdebugutils.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-12-19 09:15:57 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-12-19 11:12:39 +0100
commit5ef2f78f7d0172683d6ae63314530844c48c548e (patch)
treee053a85d31754e4158990c815a967b2ae8e8d6ec /sources/shiboken6/ApiExtractor/clangparser/clangdebugutils.cpp
parent7c670b40b9fc2681260d0fdbcc275afd9bf6c2e8 (diff)
Clean up include statements
- Remove some unused include statements - Replace C-headers (string.h) by the C++ versions (cstring) - Use WIN32_LEAN_AND_MEAN for windows.h Task-number: PYSIDE-2155 Change-Id: I8085e36f336d227218abb6c06cdd52d24c0761f4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangdebugutils.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangdebugutils.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangdebugutils.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangdebugutils.cpp
index 93618cf0f..80f439e49 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangdebugutils.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangdebugutils.cpp
@@ -7,8 +7,6 @@
#include <QtCore/QDebug>
#include <QtCore/QString>
-#include <string.h>
-
#ifndef QT_NO_DEBUG_STREAM
#ifdef Q_OS_WIN
@@ -19,7 +17,7 @@ const char pathSep = '/';
static const char *baseName(const char *fileName)
{
- const char *b = strrchr(fileName, pathSep);
+ const char *b = std::strrchr(fileName, pathSep);
return b ? b + 1 : fileName;
}