Commit 9e3f30d9 authored by Milian Wolff's avatar Milian Wolff
Browse files

Include less in appendedlist.h.

This header is basically included everywhere (really needs to be cleaned up).
For now, to reduce the amount of warnings triggered, I ported it away from
some KDE4 stuff.
parent 860d6d8e
......@@ -44,13 +44,13 @@ CodeCompletionContext::CodeCompletionContext(DUContextPointer context, const QSt
IntPusher( completionRecursionDepth, completionRecursionDepth+1 );
if( depth > 10 ) {
kDebug() << "too much recursion";
qWarning() << "too much recursion";
m_valid = false;
return;
}
if( completionRecursionDepth > 10 ) {
kDebug() << "too much recursion";
qWarning() << "too much recursion";
m_valid = false;
return;
}
......
......@@ -22,6 +22,7 @@
#include "codecompletionitem.h"
#include <QModelIndex>
#include <QDebug>
#include <ktexteditor/codecompletionmodel.h>
#include <ktexteditor/range.h>
......@@ -110,7 +111,7 @@ int CompletionTreeElement::rowInParent() const {
void CompletionTreeItem::execute(KTextEditor::View* view, const KTextEditor::Range& word) {
Q_UNUSED(view)
Q_UNUSED(word)
kDebug(9700) << "doing nothing";
qWarning() << "doing nothing";
}
QVariant CompletionTreeItem::data(const QModelIndex& index, int role, const CodeCompletionModel* model) const {
......
......@@ -19,11 +19,13 @@
#ifndef KDEVPLATFORM_APPENDEDLIST_H
#define KDEVPLATFORM_APPENDEDLIST_H
#include <QtCore/QMutex>
#include <QtCore/QVector>
#include <QtCore/QStack>
#include <QMutex>
#include <QVector>
#include <QStack>
#include <QString>
#include <util/kdevvarlengtharray.h>
#include <iostream>
#include <time.h>
......@@ -78,7 +80,7 @@ class TemporaryDataManager {
~TemporaryDataManager() {
free(DynamicAppendedListMask); //Free the zero index, so we don't get wrong warnings
uint cnt = usedItemCount();
if(cnt) //Don't use kDebug, because that may not work during destruction
if(cnt) //Don't use qDebug, because that may not work during destruction
std::cout << m_id.toLocal8Bit().data() << " There were items left on destruction: " << usedItemCount() << "\n";
for(uint a = 0; a < m_itemsUsed; ++a)
......
......@@ -52,7 +52,6 @@ ProblemNavigationContext::ProblemNavigationContext(ProblemPointer problem): m_pr
menu->setFocusPolicy(Qt::NoFocus);
foreach(IAssistantAction::Ptr action, solution->actions()) {
menu->addAction(action->toKAction());
kDebug() << "adding action" << action->description();
}
button->setMenu(menu);
......
......@@ -21,6 +21,8 @@
#include "constantintegraltype.h"
#include <QDebug>
#include "typesystemdata.h"
#include "typeregister.h"
......
......@@ -35,7 +35,7 @@ Boston, MA 02110-1301, USA.
#include <language/editor/documentrange.h>
#include <language/duchain/declaration.h>
#include <language/duchain/ducontext.h>
#include <language/duchain/indexedducontext.h>
namespace KTextEditor
{
......
......@@ -36,6 +36,7 @@
#include <kdeversion.h>
#include <kdebug.h>
#include <KComponentData>
#include <KDebug>
#include <ktexteditor/view.h>
#include <ktexteditor/document.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment