diff options
author | hjk <hjk121@nokiamail.com> | 2013-08-29 15:46:04 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-08-30 11:22:56 +0200 |
commit | 4a24df38a3a164c51f9cdddd566c9928a7482a0a (patch) | |
tree | 0017d4109b5437e0da0c0e423c888a2cb7dd8dca /src/plugins/cpptools/cppfindreferences.cpp | |
parent | e1823072a1094e9aba2781aec963fc2d2e56169f (diff) | |
download | qt-creator-4a24df38a3a164c51f9cdddd566c9928a7482a0a.tar.gz |
EditorManager: Use static pattern, adjust surrounding code
Change-Id: I3255a0150cd9a730336456c5a9f986eb74fefbff
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
-rw-r--r-- | src/plugins/cpptools/cppfindreferences.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp index 1a945a730c..bf566c60cf 100644 --- a/src/plugins/cpptools/cppfindreferences.cpp +++ b/src/plugins/cpptools/cppfindreferences.cpp @@ -61,7 +61,7 @@ static QString getSource(const QString &fileName, QString fileContents; Utils::TextFileFormat format; QString error; - QTextCodec *defaultCodec = Core::EditorManager::instance()->defaultTextCodec(); + QTextCodec *defaultCodec = Core::EditorManager::defaultTextCodec(); Utils::TextFileFormat::ReadResult result = Utils::TextFileFormat::readFile( fileName, defaultCodec, &fileContents, &format, &error); if (result != Utils::TextFileFormat::ReadSuccess) |