diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-12-16 17:17:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 17:17:31 +0000 |
| commit | 98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd (patch) | |
| tree | 64e78342cf08e5f9ad87bd5f6ea36233133be7bb /src/helpers/MiscFunctions.hpp | |
| parent | 7c33c7fc64203c17b4f3625a16ae6b4774992c0e (diff) | |
Added clang format (#1239)
* clang-format stuff and format files
Diffstat (limited to 'src/helpers/MiscFunctions.hpp')
| -rw-r--r-- | src/helpers/MiscFunctions.hpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/helpers/MiscFunctions.hpp b/src/helpers/MiscFunctions.hpp index 9f30960e..36bdc3b7 100644 --- a/src/helpers/MiscFunctions.hpp +++ b/src/helpers/MiscFunctions.hpp @@ -3,20 +3,20 @@ #include "../includes.hpp" std::string absolutePath(const std::string&, const std::string&); -void addWLSignal(wl_signal*, wl_listener*, void* pOwner, std::string ownerString); -std::string getFormat(const char *fmt, ...); // Basically Debug::log to a string +void addWLSignal(wl_signal*, wl_listener*, void* pOwner, const std::string& ownerString); +std::string getFormat(const char* fmt, ...); // Basically Debug::log to a string std::string escapeJSONStrings(const std::string& str); -void scaleBox(wlr_box*, float); +void scaleBox(wlr_box*, float); std::string removeBeginEndSpacesTabs(std::string); -bool isNumber(const std::string&, bool allowfloat = false); -bool isDirection(const std::string&); -int getWorkspaceIDFromString(const std::string&, std::string&); -float vecToRectDistanceSquared(const Vector2D& vec, const Vector2D& p1, const Vector2D& p2); -void logSystemInfo(); +bool isNumber(const std::string&, bool allowfloat = false); +bool isDirection(const std::string&); +int getWorkspaceIDFromString(const std::string&, std::string&); +float vecToRectDistanceSquared(const Vector2D& vec, const Vector2D& p1, const Vector2D& p2); +void logSystemInfo(); std::string execAndGet(const char*); -int64_t getPPIDof(int64_t pid); -int64_t configStringToInt(const std::string&); +int64_t getPPIDof(int64_t pid); +int64_t configStringToInt(const std::string&); -float getPlusMinusKeywordResult(std::string in, float relative); +float getPlusMinusKeywordResult(std::string in, float relative); -void matrixProjection(float mat[9], int w, int h, wl_output_transform tr); +void matrixProjection(float mat[9], int w, int h, wl_output_transform tr); |
