From 640079f50ae23abbaf611fe22aba28c5d8373ad7 Mon Sep 17 00:00:00 2001 From: blagoev Date: Thu, 17 Aug 2017 12:37:16 +0300 Subject: [PATCH] Remove not needed casts --- src/js_sync.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js_sync.hpp b/src/js_sync.hpp index 10da1b01..c20b0e73 100644 --- a/src/js_sync.hpp +++ b/src/js_sync.hpp @@ -120,12 +120,12 @@ template void UserClass::create_user(ContextType ctx, FunctionType, ObjectType this_object, size_t argc, const ValueType arguments[], ReturnValue &return_value) { validate_argument_count(argc, 3, 5); SyncUserIdentifier userIdentifier { - (std::string)Value::validated_to_string(ctx, arguments[1], "identity"), - (std::string)Value::validated_to_string(ctx, arguments[0], "authServerUrl") + Value::validated_to_string(ctx, arguments[1], "identity"), + Value::validated_to_string(ctx, arguments[0], "authServerUrl") }; SharedUser *user = new SharedUser(SyncManager::shared().get_user( userIdentifier, - (std::string)Value::validated_to_string(ctx, arguments[2], "refreshToken") + Value::validated_to_string(ctx, arguments[2], "refreshToken") )); if (argc == 5) {