From d66acb51d0c8b511df9f679806cbd3d84cce41ef Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 14 Feb 2012 16:43:51 +0100 Subject: Rename IFile->IDocument and FileManager->DocumentManager And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King Reviewed-by: Eike Ziller --- src/plugins/debugger/watchutils.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/plugins/debugger/watchutils.cpp') diff --git a/src/plugins/debugger/watchutils.cpp b/src/plugins/debugger/watchutils.cpp index 7007a1133c..d95834e481 100644 --- a/src/plugins/debugger/watchutils.cpp +++ b/src/plugins/debugger/watchutils.cpp @@ -36,7 +36,7 @@ #include -#include +#include #include #include @@ -151,7 +151,7 @@ bool isEditorDebuggable(Core::IEditor *editor) { // Only blacklist Qml. Whitelisting would fail on C++ code in files // with strange names, more harm would be done this way. - // IFile *file = editor->file(); + // IDocument *file = editor->document(); // return !(file && file->mimeType() == "application/x-qml"); // Nowadays, even Qml is debuggable. return editor; @@ -442,9 +442,9 @@ bool getUninitializedVariables(const CPlusPlus::Snapshot &snapshot, QByteArray gdbQuoteTypes(const QByteArray &type) { - // gdb does not understand sizeof(Core::IFile*). - // "sizeof('Core::IFile*')" is also not acceptable, - // it needs to be "sizeof('Core::IFile'*)" + // gdb does not understand sizeof(Core::IDocument*). + // "sizeof('Core::IDocument*')" is also not acceptable, + // it needs to be "sizeof('Core::IDocument'*)" // // We never will have a perfect solution here (even if we had a full blown // C++ parser as we do not have information on what is a type and what is @@ -647,10 +647,10 @@ QString decodeData(const QByteArray &ba, int encoding) bool isCppEditor(Core::IEditor *editor) { using namespace CppTools::Constants; - const Core::IFile *file = editor->file(); - if (!file) + const Core::IDocument *document= editor->document(); + if (!document) return false; - const QByteArray mimeType = file->mimeType().toLatin1(); + const QByteArray mimeType = document->mimeType().toLatin1(); return mimeType == C_SOURCE_MIMETYPE || mimeType == CPP_SOURCE_MIMETYPE || mimeType == CPP_HEADER_MIMETYPE @@ -693,10 +693,10 @@ QString cppExpressionAt(TextEditor::ITextEditor *editor, int pos, } if (function && !expr.isEmpty()) - if (const Core::IFile *file = editor->file()) + if (const Core::IDocument *document= editor->document()) if (modelManager) *function = AbstractEditorSupport::functionAt(modelManager, - file->fileName(), *line, *column); + document->fileName(), *line, *column); return expr; } -- cgit v1.2.1