File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ install_manifest.txt
1919compile_commands.json
2020CTestTestfile.cmake
2121_deps
22+ cmake-build-debug /
Original file line number Diff line number Diff line change @@ -217,12 +217,12 @@ class Countly : public cly::CountlyDelegates {
217217 * Helper methods to fetch remote config from the server.
218218 */
219219#pragma region Remote_Config_Helper_Methods
220- void _fetchRemoteConfig (std::map<std::string, std::string> &data);
221- void _updateRemoteConfigWithSpecificValues (std::map<std::string, std::string> &data);
220+ void _fetchRemoteConfig (const std::map<std::string, std::string> &data);
221+ void _updateRemoteConfigWithSpecificValues (const std::map<std::string, std::string> &data);
222222#pragma endregion Remote_Config_Helper_Methods
223223
224224 void processRequestQueue ();
225- void addToRequestQueue (std::string &data);
225+ void addToRequestQueue (const std::string &data);
226226 HTTPResponse sendHTTP (std::string path, std::string data);
227227
228228 void _changeDeviceIdWithMerge (const std::string &value);
Original file line number Diff line number Diff line change @@ -839,7 +839,7 @@ void Countly::processRequestQueue() {
839839 mutex.unlock ();
840840}
841841
842- void Countly::addToRequestQueue (std::string &data) {
842+ void Countly::addToRequestQueue (const std::string &data) {
843843 if (request_queue.size () >= 1000 ) {
844844 log (Countly::LogLevel::WARNING, " [Countly][addToRequestQueue] Request Queue is full. Dropping the oldest request." );
845845 request_queue.pop_front ();
@@ -1063,7 +1063,7 @@ void Countly::enableRemoteConfig() {
10631063 mutex.unlock ();
10641064}
10651065
1066- void Countly::_fetchRemoteConfig (std::map<std::string, std::string> &data) {
1066+ void Countly::_fetchRemoteConfig (const std::map<std::string, std::string> &data) {
10671067 HTTPResponse response = sendHTTP (" /o/sdk" , serializeForm (data));
10681068 mutex.lock ();
10691069 if (response.success ) {
@@ -1095,7 +1095,7 @@ nlohmann::json Countly::getRemoteConfigValue(const std::string &key) {
10951095 return value;
10961096}
10971097
1098- void Countly::_updateRemoteConfigWithSpecificValues (std::map<std::string, std::string> &data) {
1098+ void Countly::_updateRemoteConfigWithSpecificValues (const std::map<std::string, std::string> &data) {
10991099 HTTPResponse response = sendHTTP (" /o/sdk" , serializeForm (data));
11001100 mutex.lock ();
11011101 if (response.success ) {
Original file line number Diff line number Diff line change 11#include " countly/logger_module.hpp"
22#include < iostream>
3+ #include < memory>
34namespace cly {
45class LoggerModule ::LoggerModuleImpl {
56public:
6- LoggerModuleImpl::LoggerModuleImpl () {}
7+ LoggerModuleImpl () {}
78 LoggerFunction logger_function;
89};
910
10- LoggerModule::LoggerModule () { impl. reset ( new LoggerModuleImpl () ); }
11+ LoggerModule::LoggerModule () { impl = std::make_unique< LoggerModuleImpl>( ); }
1112
1213LoggerModule::~LoggerModule () {}
1314
You can’t perform that action at this time.
0 commit comments