diff options
| author | 2018-08-15 23:16:11 -0400 | |
|---|---|---|
| committer | 2018-08-15 23:24:00 -0400 | |
| commit | b39cd70cd4a78903506d987080fe5e4a0e990f2d (patch) | |
| tree | 64b90ace1c02e926a94d4b6dfa37377503dbca26 /src/common/hex_util.cpp | |
| parent | Merge pull request #1005 from DarkLordZach/registered-fmt (diff) | |
| download | yuzu-b39cd70cd4a78903506d987080fe5e4a0e990f2d.tar.gz yuzu-b39cd70cd4a78903506d987080fe5e4a0e990f2d.tar.xz yuzu-b39cd70cd4a78903506d987080fe5e4a0e990f2d.zip | |
common: Namespace hex_util.h/.cpp
It's in the common code, so it should be under the Common namespace like
everything else.
Diffstat (limited to 'src/common/hex_util.cpp')
| -rw-r--r-- | src/common/hex_util.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/hex_util.cpp b/src/common/hex_util.cpp index ae17c89d4..609144def 100644 --- a/src/common/hex_util.cpp +++ b/src/common/hex_util.cpp | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | #include "common/hex_util.h" | 5 | #include "common/hex_util.h" |
| 6 | 6 | ||
| 7 | namespace Common { | ||
| 8 | |||
| 7 | u8 ToHexNibble(char c1) { | 9 | u8 ToHexNibble(char c1) { |
| 8 | if (c1 >= 65 && c1 <= 70) | 10 | if (c1 >= 65 && c1 <= 70) |
| 9 | return c1 - 55; | 11 | return c1 - 55; |
| @@ -25,3 +27,5 @@ std::array<u8, 32> operator""_array32(const char* str, size_t len) { | |||
| 25 | throw std::logic_error("Not of correct size."); | 27 | throw std::logic_error("Not of correct size."); |
| 26 | return HexStringToArray<32>(str); | 28 | return HexStringToArray<32>(str); |
| 27 | } | 29 | } |
| 30 | |||
| 31 | } // namespace Common | ||