Skip to content

Commit

Permalink
refactor: Rename remaining "black" identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ltoenning committed Nov 10, 2024
1 parent 40cbd5b commit 101e770
Show file tree
Hide file tree
Showing 525 changed files with 1,492 additions and 1,603 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ endif()
add_compile_definitions(QT_NO_DEPRECATED_WARNINGS)

if(SWIFT_USE_CRASHPAD)
add_compile_definitions(BLACK_USE_CRASHPAD)
add_compile_definitions(SWIFT_USE_CRASHPAD)
endif()

if(APPLE)
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! \ingroup samplekmisc

using namespace swift::misc;
using namespace BlackSample;
using namespace swift::sample;
using namespace swift::core;

//! main
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesalgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <ctime>
#include <numeric>

namespace BlackSample
namespace swift::sample
{
int CSamplesAlgorithm::samples()
{
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesalgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

namespace BlackSample
namespace swift::sample
{
//! Samples for our algorithms
class CSamplesAlgorithm
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/sampleschangeobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using namespace swift::misc::physical_quantities;
using namespace swift::misc::geo;
using namespace swift::misc::network;

namespace BlackSample
namespace swift::sample
{
int CSamplesChangeObject::samples()
{
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/sampleschangeobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

namespace BlackSample
namespace swift::sample
{
//! Samples for metadata
class CSamplesChangeObject
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplescontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using namespace swift::misc::geo;
using namespace swift::misc::network;
using namespace swift::misc::test;

namespace BlackSample
namespace swift::sample
{
int CSamplesContainer::samples()
{
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplescontainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

namespace BlackSample
namespace swift::sample
{
//! Samples for our containers
class CSamplesContainer
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using namespace swift::misc;

namespace BlackSample
namespace swift::sample
{
int CSamplesFile::samples(QTextStream &out)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <QTextStream>

namespace BlackSample
namespace swift::sample
{
//! Samples for file/directory
class CSamplesFile
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ using namespace swift::misc::geo;
using namespace swift::misc::network;
using namespace swift::misc::test;

namespace BlackSample
namespace swift::sample
{
int CSamplesJson::samples()
{
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesjson.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

namespace BlackSample
namespace swift::sample
{

//! Samples for metadata
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesmetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <stdio.h>
#include <QTextStream>

namespace BlackSample
namespace swift::sample
{
int CSamplesMetadata::samples()
{
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesmetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

namespace BlackSample
namespace swift::sample
{

//! Samples for metadata
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesperformance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ using namespace swift::misc::simulation;
using namespace swift::misc::test;
using namespace swift::core::db;

namespace BlackSample
namespace swift::sample
{
int CSamplesPerformance::samplesMisc(QTextStream &out)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesperformance.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for our containers
class CSamplesPerformance
Expand Down
6 changes: 3 additions & 3 deletions samples/miscdbus/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int main(int argc, char *argv[])
// run tests
if (cmdlineArgs.contains("testservice", Qt::CaseInsensitive))
{
BlackSample::ServiceTool::dataTransferTestClient(address);
swift::sample::ServiceTool::dataTransferTestClient(address);
}

// loop
Expand Down Expand Up @@ -175,14 +175,14 @@ int main(int argc, char *argv[])
// run tests
if (mode == "testservice")
{
BlackSample::ServiceTool::dataTransferTestServer(dBusServer, verbose);
swift::sample::ServiceTool::dataTransferTestServer(dBusServer, verbose);
}

// testing in new process
CProcessCtrl::startDetached(executable, args, true);

// testing in same process
// BlackSample::ServiceTool::dataTransferTestClient(address);
// swift::sample::ServiceTool::dataTransferTestClient(address);

// loop
return a.exec();
Expand Down
4 changes: 2 additions & 2 deletions samples/miscdbus/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ qdbuscpp2xml datacontext.h -x misc_cpp2xml.dll -o MiscTest.Datacontext.xml
Set search path for plugins: env.var. QT_PLUGIN_PATH

Done automatically (qmake), but if required manually
Interface: qdbusxml2cpp blackbus.testservice.xml -p itestservice
Adaptor: qdbusxml2cpp blackbus.testservice.xml -a atestservice
Interface: qdbusxml2cpp swiftbus.testservice.xml -p itestservice
Adaptor: qdbusxml2cpp swiftbus.testservice.xml -a atestservice

-- Removed after changing to "handwritten" interface

Expand Down
2 changes: 1 addition & 1 deletion samples/miscdbus/servicetool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ using namespace swift::misc::simulation::fscommon;
using namespace swift::misc::test;
using namespace swift::core;

namespace BlackSample
namespace swift::sample
{
void ServiceTool::dataTransferTestServer(CDBusServer *dBusServer, bool verbose)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/miscdbus/servicetool.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace swift::misc
{
class CDBusServer;
}
namespace BlackSample
namespace swift::sample
{
class Testservice; // forward declaration

Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <QtGlobal>

using namespace swift::misc;
using namespace BlackSample;
using namespace swift::sample;
using namespace swift::core;

//! main
Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/samplesaviation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ using namespace swift::misc::geo;
using namespace swift::misc::network;
using namespace swift::misc::test;

namespace BlackSample
namespace swift::sample
{
int CSamplesAviation::samples(QTextStream &out)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/samplesaviation.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{

//! Samples for aviation
Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/samplesgeo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ using namespace swift::misc::aviation;
using namespace swift::misc::physical_quantities;
using namespace swift::misc::geo;

namespace BlackSample
namespace swift::sample
{
int CSamplesGeo::samples(QTextStream &out)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/samplesgeo.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for physical quantities
class CSamplesGeo
Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/samplesphysicalquantities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using namespace swift::misc;
using namespace swift::misc::aviation;
using namespace swift::misc::physical_quantities;

namespace BlackSample
namespace swift::sample
{
int CSamplesPhysicalQuantities::samples(QTextStream &out)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/samplesphysicalquantities.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{

//! Samples for physical quantities
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <QtGlobal>

using namespace swift::misc;
using namespace BlackSample;
using namespace swift::sample;

//! main
int main(int argc, char *argv[])
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesfscommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ using namespace swift::misc::simulation;
using namespace swift::misc::simulation::fscommon;
using namespace swift::misc::simulation::settings;

namespace BlackSample
namespace swift::sample
{
void CSamplesFsCommon::samples(QTextStream &streamOut, QTextStream &streamIn)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesfscommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for FsCommon classes
class CSamplesFsCommon
Expand Down
4 changes: 2 additions & 2 deletions samples/miscsim/samplesfsuipc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
using namespace swift::misc;
using namespace swift::misc::simulation;

namespace BlackSample
namespace swift::sample
{
#ifdef Q_OS_WIN
void CSamplesFsuipc::samplesFsuipc(QTextStream &streamOut)
{
using namespace BlackSimPlugin::FsCommon;
using namespace swift::simplugin::fscommon;

swift::misc::registerMetadata();
QScopedPointer<CFsuipc> fsuipc(new CFsuipc());
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesfsuipc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for FSUIPC
class CSamplesFsuipc
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesfsx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

using namespace swift::misc::simulation::fsx;

namespace BlackSample
namespace swift::sample
{
void CSamplesFsx::samplesMisc(QTextStream &streamOut)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesfsx.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for FSX classes
class CSamplesFsx
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesmodelmapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using namespace swift::misc::simulation::fscommon;
using namespace swift::misc::simulation::settings;
using namespace swift::misc::aviation;

namespace BlackSample
namespace swift::sample
{
void CSamplesModelMapping::samples(QTextStream &streamOut, QTextStream &streamIn)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesmodelmapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for model mapping classes
class CSamplesModelMapping
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesp3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

using namespace swift::misc::simulation::fscommon;

namespace BlackSample
namespace swift::sample
{
void CSamplesP3D::samplesMisc(QTextStream &streamOut)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesp3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for P3D classes
class CSamplesP3D
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesvpilotrules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using namespace swift::misc;
using namespace swift::misc::simulation;
using namespace swift::misc::simulation::fscommon;

namespace BlackSample
namespace swift::sample
{

/*
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/samplesvpilotrules.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for vPilot rules
class CSamplesVPilotRules
Expand Down
Loading

0 comments on commit 101e770

Please sign in to comment.