diff options
author | Ben Burdette <bburdette@users.noreply.github.com> | 2020-06-22 10:00:37 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 10:00:37 -0600 |
commit | 28b079067f4248c81b8946c459435c7a91dc2971 (patch) | |
tree | cd3d4eb3a64484ef84989ab77f2edb25407ed512 /src/libutil/fmt.hh | |
parent | be4f444175568fe48fdaf58387820a75bb16aeaa (diff) |
Update src/libutil/fmt.hh
Co-authored-by: John Ericson <git@JohnEricson.me>
Diffstat (limited to 'src/libutil/fmt.hh')
-rw-r--r-- | src/libutil/fmt.hh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libutil/fmt.hh b/src/libutil/fmt.hh index 789e500ef..dc7fe8056 100644 --- a/src/libutil/fmt.hh +++ b/src/libutil/fmt.hh @@ -139,11 +139,9 @@ inline hintformat hintfmt(const std::string & fs, const Args & ... args) return f; } -inline hintformat hintfmt(std::string fs) +inline hintformat hintfmt(std::string plain_string) { - // we won't be receiving any args in this case, so escape all percents. - boost::replace_all(fs, "%", "%%"); - hintformat f(fs); - return f; + // we won't be receiving any args in this case, so just print the original string + return hintfmt("%s", plain_string); } } |