forked from qt-creator/qt-creator
qmljs: put file specific logs in anonymous namespace
putting file specific log categories in anonymous namespace avoid the possibility of nameclashes. Change-Id: I17a07015ffe1c539824fcfcbc2296335d9225dd1 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -35,9 +35,11 @@
|
||||
#include <QTextDocument>
|
||||
#include <QTextBlock>
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(formatterLog, "qtc.qmljs.formatter")
|
||||
}
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
CodeFormatter::BlockData::BlockData()
|
||||
: m_indentDepth(0)
|
||||
|
||||
@@ -43,9 +43,11 @@ enum {
|
||||
debug = false
|
||||
};
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(iconsLog, "qtc.qmljs.icons")
|
||||
}
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
Icons *Icons::m_instance = 0;
|
||||
|
||||
|
||||
@@ -38,9 +38,11 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(importsLog, "qtc.qmljs.imports")
|
||||
}
|
||||
|
||||
namespace QmlJS {
|
||||
|
||||
ImportKind::Enum toImportKind(ImportType::Enum type)
|
||||
{
|
||||
|
||||
@@ -39,8 +39,11 @@
|
||||
|
||||
#include <QFile>
|
||||
|
||||
namespace QmlJS{
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(simpleReaderLog, "qtc.qmljs.simpleReader")
|
||||
}
|
||||
|
||||
namespace QmlJS{
|
||||
|
||||
QVariant SimpleReaderNode::property(const QString &name) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user