aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpaster
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-07-22 13:07:53 +0200
committerhjk <hjk@qt.io>2022-07-22 13:07:43 +0000
commit4f4d77e79702d6371868e7fd76381fcfeaec5be1 (patch)
treee7d37ada97998119db421fa2aec76b15821341b6 /src/plugins/cpaster
parent8d13ce2ee7b4b4b694df261c6ed0676ce9ad5e0d (diff)
Core: Avoid #include of fileutils.h in icore.h
filepath.h is sufficient. Change-Id: Ibd865020f7820a6c6478eca6cf7b8065cf8c8cf3 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r--src/plugins/cpaster/fileshareprotocol.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/plugins/cpaster/fileshareprotocol.cpp b/src/plugins/cpaster/fileshareprotocol.cpp
index 297b62c687..fbf5ac1241 100644
--- a/src/plugins/cpaster/fileshareprotocol.cpp
+++ b/src/plugins/cpaster/fileshareprotocol.cpp
@@ -29,6 +29,8 @@
#include <coreplugin/icore.h>
#include <coreplugin/messagemanager.h>
+#include <utils/fileutils.h>
+
#include <QXmlStreamReader>
#include <QXmlStreamAttribute>
#include <QTemporaryFile>
@@ -38,12 +40,12 @@
enum { debug = 0 };
-static const char tempPatternC[] = "pasterXXXXXX.xml";
-static const char tempGlobPatternC[] = "paster*.xml";
-static const char pasterElementC[] = "paster";
-static const char userElementC[] = "user";
-static const char descriptionElementC[] = "description";
-static const char textElementC[] = "text";
+const char tempPatternC[] = "pasterXXXXXX.xml";
+const char tempGlobPatternC[] = "paster*.xml";
+const char pasterElementC[] = "paster";
+const char userElementC[] = "user";
+const char descriptionElementC[] = "description";
+const char textElementC[] = "text";
namespace CodePaster {