diff options
| author | Crystalwarrior <varsash@gmail.com> | 2020-05-22 02:14:54 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2020-05-22 02:14:54 +0300 |
| commit | 88de4cde0433ef5e606f38a2f1e6041f0d24a87e (patch) | |
| tree | ce57adab0e3a236a93d112f33235638b74502040 /src/hex_functions.cpp | |
| parent | c8e12558cdd3fd0769b81679ad09edf1f29b780f (diff) | |
clang 2 electric boogaloo
{ BasedOnStyle: LLVM, BreakBeforeBraces: Stroustrup}
Diffstat (limited to 'src/hex_functions.cpp')
| -rw-r--r-- | src/hex_functions.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/hex_functions.cpp b/src/hex_functions.cpp index 63293c1..1e35718 100644 --- a/src/hex_functions.cpp +++ b/src/hex_functions.cpp @@ -1,17 +1,17 @@ #include "hex_functions.h" namespace omni { - std::string int_to_hex(unsigned int input) - { - if (input > 255) - return "FF"; +std::string int_to_hex(unsigned int input) +{ + if (input > 255) + return "FF"; - std::stringstream stream; - stream << std::setfill('0') << std::setw(sizeof(char) * 2) - << std::hex << input; - std::string result(stream.str()); - std::transform(result.begin(), result.end(), result.begin(), ::toupper); + std::stringstream stream; + stream << std::setfill('0') << std::setw(sizeof(char) * 2) << std::hex + << input; + std::string result(stream.str()); + std::transform(result.begin(), result.end(), result.begin(), ::toupper); - return result; - } + return result; +} } // namespace omni |
