diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 8c2353be..6efc4738 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -2560,7 +2560,7 @@ void MainWindow::debug() inferior=mProject->options().hostApplication; inferiorHasSymbols = false; } - inferior.replace('\\','/'); + QDir::fromNativeSeparators(inferior); if (!mDebugger->startClient( mProject->options().compilerSet, inferior, @@ -2657,7 +2657,7 @@ void MainWindow::debug() } prepareDebugger(); - QString newFilePath = debugFile.filePath().replace('\\','/'); + QString newFilePath =QDir::fromNativeSeparators(debugFile.filePath()); if (!mDebugger->startClient( pSettings->compilerSets().defaultIndex(), newFilePath, diff --git a/RedPandaIDE/parser/parserutils.cpp b/RedPandaIDE/parser/parserutils.cpp index e76e065d..ce3a3721 100644 --- a/RedPandaIDE/parser/parserutils.cpp +++ b/RedPandaIDE/parser/parserutils.cpp @@ -21,6 +21,7 @@ #include #include #include +#include "../systemconsts.h" #include "../utils.h" QStringList CppDirectives; @@ -506,7 +507,7 @@ bool isSystemHeaderFile(const QString &fileName, const QSet &includePat QDir dir = info.dir(); QString absPath = dir.absolutePath(); foreach (const QString& incPath, includePaths) { - if (absPath.startsWith(incPath)) + if (absPath.startsWith(incPath, PATH_SENSITIVITY)) return true; } }