From 09aad1ac4d455b2e40969013d0299117e7872961 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 20 Sep 2013 10:35:16 +0200 Subject: CodeStyleSettings: De-noise user code by using QByteArray ids. Change-Id: Ia7210b0ff85667951e4e5554155d89ed6925f9ec Reviewed-by: David Schulz --- src/plugins/texteditor/codestylepool.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/texteditor/codestylepool.h') diff --git a/src/plugins/texteditor/codestylepool.h b/src/plugins/texteditor/codestylepool.h index e2a58988cf..ef6dff460d 100644 --- a/src/plugins/texteditor/codestylepool.h +++ b/src/plugins/texteditor/codestylepool.h @@ -58,14 +58,14 @@ public: QList customCodeStyles() const; ICodeStylePreferences *cloneCodeStyle(ICodeStylePreferences *originalCodeStyle); - ICodeStylePreferences *createCodeStyle(const QString &id, const TabSettings &tabSettings, + ICodeStylePreferences *createCodeStyle(const QByteArray &id, const TabSettings &tabSettings, const QVariant &codeStyleData, const QString &displayName); // ownership is passed to the pool void addCodeStyle(ICodeStylePreferences *codeStyle); // is removed and deleted void removeCodeStyle(ICodeStylePreferences *codeStyle); - ICodeStylePreferences *codeStyle(const QString &id) const; + ICodeStylePreferences *codeStyle(const QByteArray &id) const; void loadCustomCodeStyles(); @@ -81,7 +81,7 @@ private slots: private: QString settingsDir() const; - Utils::FileName settingsPath(const QString &id) const; + Utils::FileName settingsPath(const QByteArray &id) const; ICodeStylePreferences *loadCodeStyle(const Utils::FileName &fileName); void saveCodeStyle(ICodeStylePreferences *codeStyle) const; -- cgit v1.2.1