Skip to content

Commit 4f39548

Browse files
committed
Review
1 parent 9421a5c commit 4f39548

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

src/proxy/cluster_connection_settings_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ IClusterSettingsBase* ClusterConnectionSettingsFactory::CreateFromStringCluster(
6363
}
6464

6565
IClusterSettingsBase* result = nullptr;
66-
size_t value_len = value.size();
66+
const size_t value_len = value.size();
6767

6868
uint8_t comma_count = 0;
6969
serialize_t element_text;

src/proxy/command/command_logger.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,9 @@ void CommandLogger::Print(core::FastoObjectCommandIPtr command) {
3131
emit Printed(command);
3232
}
3333

34+
void LOG_COMMAND(core::FastoObjectCommandIPtr command) {
35+
return CommandLogger::GetInstance().Print(command);
36+
}
37+
3438
} // namespace proxy
3539
} // namespace fastonosql

src/proxy/command/command_logger.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ class CommandLogger : public QObject, public common::patterns::LazySingleton<Com
4141
CommandLogger();
4242
};
4343

44-
inline void LOG_COMMAND(core::FastoObjectCommandIPtr command) {
45-
return CommandLogger::GetInstance().Print(command);
46-
}
44+
void LOG_COMMAND(core::FastoObjectCommandIPtr command);
4745

4846
} // namespace proxy
4947
} // namespace fastonosql

src/proxy/user_info.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,7 @@ const char* kBuildStrategy[] = {"community", "public", "private"};
2828
namespace fastonosql {
2929
namespace proxy {
3030

31-
UserInfo::UserInfo()
32-
: login_(),
33-
password_(),
34-
build_strategy_(),
35-
first_name_(),
36-
last_name_(),
37-
subscription_state_(UNSUBSCIRBED),
38-
type_(USER),
39-
exec_count_(0),
40-
expire_time_(0),
41-
user_id_() {}
31+
UserInfo::UserInfo() : UserInfo(std::string(), std::string(), COMMUNITY_BUILD) {}
4232

4333
UserInfo::UserInfo(const std::string& login, const std::string& password, BuildStrategy strategy)
4434
: login_(login),

0 commit comments

Comments
 (0)