Skip to content

Commit

Permalink
Removing usage of the "cc" namespace alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Nov 12, 2024
1 parent 28c0b17 commit a1fe143
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 41 deletions.
22 changes: 10 additions & 12 deletions app/cc_view/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#include "icon.h"
#include "dir.h"

namespace cc = cc_tools_qt;

namespace
{

Expand All @@ -42,14 +40,14 @@ const QString DebugOptStr("debug");

void metaTypesRegisterAll()
{
qRegisterMetaType<cc::GuiAppMgr::ActionPtr>();
qRegisterMetaType<cc_tools_qt::GuiAppMgr::ActionPtr>();
}

void initSingletons()
{
static_cast<void>(cc::PluginMgrG::instanceRef());
static_cast<void>(cc::MsgMgrG::instanceRef());
static_cast<void>(cc::GuiAppMgr::instance());
static_cast<void>(cc_tools_qt::PluginMgrG::instanceRef());
static_cast<void>(cc_tools_qt::MsgMgrG::instanceRef());
static_cast<void>(cc_tools_qt::GuiAppMgr::instance());
}

void prepareCommandLineOptions(QCommandLineParser& parser)
Expand Down Expand Up @@ -99,21 +97,21 @@ int main(int argc, char *argv[])
prepareCommandLineOptions(parser);
parser.process(app);

cc::MainWindowWidget window;
window.setWindowIcon(cc::icon::appIcon());
cc_tools_qt::MainWindowWidget window;
window.setWindowIcon(cc_tools_qt::icon::appIcon());
window.showMaximized();

auto pluginsDir = cc::getPluginsDir();
auto pluginsDir = cc_tools_qt::getPluginsDir();
if (pluginsDir.isEmpty()) {
std::cerr << "ERROR: Failed to find plugins directory!" << std::endl;
return -1;
}
app.addLibraryPath(pluginsDir);

auto& pluginMgr = cc::PluginMgrG::instanceRef();
auto& pluginMgr = cc_tools_qt::PluginMgrG::instanceRef();
pluginMgr.setPluginsDir(pluginsDir);

auto& guiAppMgr = cc::GuiAppMgr::instanceRef();
auto& guiAppMgr = cc_tools_qt::GuiAppMgr::instanceRef();
guiAppMgr.setDebugOutputLevel(parser.value(DebugOptStr).toUInt());
do {
if (parser.isSet(CleanOptStr) && guiAppMgr.startClean()) {
Expand All @@ -135,7 +133,7 @@ int main(int argc, char *argv[])
&app, &QCoreApplication::aboutToQuit,
[]()
{
cc::MsgMgrG::instanceRef().deleteAllMsgs();
cc_tools_qt::MsgMgrG::instanceRef().deleteAllMsgs();
});

auto retval = app.exec();
Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/DemoMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/DemoProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include "comms/comms.h"

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/DemoTransportMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/Bitfields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/BitmaskValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/Bundles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/EnumValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/FloatValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/IntValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/Lists.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/Optionals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/Strings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
2 changes: 0 additions & 2 deletions demo/cc_plugin/message/Variants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

#include <cassert>

namespace cc = cc_tools_qt;

namespace demo
{

Expand Down
4 changes: 1 addition & 3 deletions plugin/raw_data_protocol/cc_plugin/RawDataProtocolPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include "RawDataProtocolPlugin.h"
#include "RawDataProtocol.h"

namespace cc = cc_tools_qt;

namespace cc_tools_qt
{

Expand All @@ -42,7 +40,7 @@ RawDataProtocolPlugin::~RawDataProtocolPlugin() noexcept = default;

ToolsProtocolPtr RawDataProtocolPlugin::createProtocolImpl()
{
return cc::ToolsProtocolPtr(new RawDataProtocol());
return cc_tools_qt::ToolsProtocolPtr(new RawDataProtocol());
}

} // namespace cc_plugin
Expand Down

0 comments on commit a1fe143

Please sign in to comment.