aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/CharsetOperator.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-11-07 07:18:06 +0000
committersaturneric <[email protected]>2023-11-07 07:18:06 +0000
commit3ad7fecdb6458fdd6f146bed19fe643c7f93e905 (patch)
tree522f7a5dd0389ad0771d01a50ea49ef646940894 /src/core/function/CharsetOperator.h
parentrefactor: improve the code structure of core (diff)
downloadGpgFrontend-3ad7fecdb6458fdd6f146bed19fe643c7f93e905.tar.gz
GpgFrontend-3ad7fecdb6458fdd6f146bed19fe643c7f93e905.zip
refactor: remove CommonUtils at core
Diffstat (limited to 'src/core/function/CharsetOperator.h')
-rw-r--r--src/core/function/CharsetOperator.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/function/CharsetOperator.h b/src/core/function/CharsetOperator.h
index 42d6ed4e..c7092797 100644
--- a/src/core/function/CharsetOperator.h
+++ b/src/core/function/CharsetOperator.h
@@ -36,9 +36,9 @@ class GPGFRONTEND_CORE_EXPORT CharsetOperator {
public:
using CharsetInfo = std::tuple<std::string, std::string, int>;
- static CharsetInfo Detect(const std::string &buffer);
+ static auto Detect(const std::string &buffer) -> CharsetInfo;
- static bool Convert2Utf8(const std::string &buffer, std::string &out_buffer,
- std::string from_charset_name);
+ static auto Convert2Utf8(const std::string &buffer, std::string &out_buffer,
+ std::string from_charset_name) -> bool;
};
} // namespace GpgFrontend