Apply formating to all files. CLeanup

This commit is contained in:
IlyaShurupov 2023-10-22 17:07:28 +03:00
parent 43e374f269
commit 744c01c5d0
928 changed files with 14515 additions and 21480 deletions

View file

@ -45,8 +45,10 @@ namespace tp {
public:
Type() = default;
explicit Type(bool read) : mHandleType((State) read) {}
explicit Type(State handleType) : mHandleType(handleType) {}
explicit Type(bool read) :
mHandleType((State) read) {}
explicit Type(State handleType) :
mHandleType(handleType) {}
[[nodiscard]] State getType() const { return mHandleType; }
[[nodiscard]] bool isRead() const { return mHandleType == READ; }
[[nodiscard]] bool isWrite() const { return mHandleType == WRITE; }

View file

@ -9,18 +9,19 @@ namespace tp {
public:
class Location {
String mLocation;
public:
Location() : mLocation("tmp") {};
explicit Location(const String& location) : mLocation(location) {}
Location() :
mLocation("tmp"){};
explicit Location(const String& location) :
mLocation(location) {}
void setLocation(const String& location) { mLocation = location; }
[[nodiscard]] const String& getLocation() const { return mLocation; }
[[nodiscard]] bool exists() const;
};
public:
LocalConnection() {
MODULE_SANITY_CHECK(gModuleConnection)
};
LocalConnection(){ MODULE_SANITY_CHECK(gModuleConnection) };
virtual ~LocalConnection() {
if (mStatus.isOpened()) LocalConnection::disconnect();

View file

@ -11,14 +11,13 @@ namespace tp {
public:
class Location {
ualni mId = 0;
public:
Location() = default;
};
public:
RemoteConnection() {
MODULE_SANITY_CHECK(gModuleConnection)
};
RemoteConnection(){ MODULE_SANITY_CHECK(gModuleConnection) };
virtual ~RemoteConnection() {
if (mStatus.isOpened()) RemoteConnection::disconnect();