summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-20 23:05:46 +0200
committerLioncash <mathew1800@gmail.com>2018-07-20 23:24:02 +0200
commit474ec2ee5fd4047babcb24f48385dfde3e5b0421 (patch)
treed40f1cca5d0326b6cccec356d95162fc4899879a /src/common
parentMerge pull request #740 from Subv/acc_crash (diff)
downloadyuzu-474ec2ee5fd4047babcb24f48385dfde3e5b0421.tar
yuzu-474ec2ee5fd4047babcb24f48385dfde3e5b0421.tar.gz
yuzu-474ec2ee5fd4047babcb24f48385dfde3e5b0421.tar.bz2
yuzu-474ec2ee5fd4047babcb24f48385dfde3e5b0421.tar.lz
yuzu-474ec2ee5fd4047babcb24f48385dfde3e5b0421.tar.xz
yuzu-474ec2ee5fd4047babcb24f48385dfde3e5b0421.tar.zst
yuzu-474ec2ee5fd4047babcb24f48385dfde3e5b0421.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/param_package.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/param_package.cpp b/src/common/param_package.cpp
index e0df430ab..bec58c698 100644
--- a/src/common/param_package.cpp
+++ b/src/common/param_package.cpp
@@ -12,10 +12,11 @@ namespace Common {
constexpr char KEY_VALUE_SEPARATOR = ':';
constexpr char PARAM_SEPARATOR = ',';
+
constexpr char ESCAPE_CHARACTER = '$';
-const std::string KEY_VALUE_SEPARATOR_ESCAPE{ESCAPE_CHARACTER, '0'};
-const std::string PARAM_SEPARATOR_ESCAPE{ESCAPE_CHARACTER, '1'};
-const std::string ESCAPE_CHARACTER_ESCAPE{ESCAPE_CHARACTER, '2'};
+constexpr char KEY_VALUE_SEPARATOR_ESCAPE[] = "$0";
+constexpr char PARAM_SEPARATOR_ESCAPE[] = "$1";
+constexpr char ESCAPE_CHARACTER_ESCAPE[] = "$2";
ParamPackage::ParamPackage(const std::string& serialized) {
std::vector<std::string> pairs;