diff options
author | Saturneric <[email protected]> | 2023-02-25 09:12:19 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-02-25 09:12:19 +0000 |
commit | 3c63ef69ff5fa6c5b355324dd6a3523fcc8ec042 (patch) | |
tree | 1407140c54c0916b763392fdd8c14745ef7e5af6 /src/core/common/CoreCommonUtil.cpp | |
parent | fix: improve ci configs (diff) | |
download | GpgFrontend-3c63ef69ff5fa6c5b355324dd6a3523fcc8ec042.tar.gz GpgFrontend-3c63ef69ff5fa6c5b355324dd6a3523fcc8ec042.zip |
fix: solve codacy issues
Diffstat (limited to '')
-rw-r--r-- | src/core/common/CoreCommonUtil.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/common/CoreCommonUtil.cpp b/src/core/common/CoreCommonUtil.cpp index 9d0d0bd5..93cad60a 100644 --- a/src/core/common/CoreCommonUtil.cpp +++ b/src/core/common/CoreCommonUtil.cpp @@ -32,25 +32,25 @@ namespace GpgFrontend { std::unique_ptr<CoreCommonUtil> CoreCommonUtil::instance_ = nullptr; ///<
-CoreCommonUtil *CoreCommonUtil::GetInstance() {
+CoreCommonUtil* CoreCommonUtil::GetInstance() {
if (instance_ == nullptr) {
instance_ = std::make_unique<CoreCommonUtil>();
}
return instance_.get();
}
-void CoreCommonUtil::SetTempCacheValue(const std::string key,
- const std::string value) {
+void CoreCommonUtil::SetTempCacheValue(const std::string& key,
+ const std::string& value) {
temp_cache_[key] = value;
}
-std::string CoreCommonUtil::GetTempCacheValue(const std::string key) {
+std::string CoreCommonUtil::GetTempCacheValue(const std::string& key) {
std::string temp_cache_value;
std::swap(temp_cache_value, temp_cache_[key]);
return temp_cache_value;
}
-void CoreCommonUtil::ResetTempCacheValue(const std::string key) {
+void CoreCommonUtil::ResetTempCacheValue(const std::string& key) {
std::string temp_cache_value;
std::swap(temp_cache_value, temp_cache_[key]);
}
|