Remove a needless conversion, no strings attached 98/274198/1
authorMichal Bloch <m.bloch@samsung.com>
Fri, 22 Apr 2022 17:48:14 +0000 (19:48 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Fri, 22 Apr 2022 17:51:05 +0000 (19:51 +0200)
Change-Id: Ib630e38df75532e93e0a5785bb904390cbfecb80
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
sessiond/src/fs_helpers.cpp

index c544b94e04a44c4f02154af751ba59fd947505b3..8efeddaf0ca220703f4247ebeb81772986ccd405 100644 (file)
@@ -124,13 +124,13 @@ void fs_helpers::create_main_subdirectory(const int session_uid, std::string_vie
                throw std::system_error(errno, std::system_category(),
                        std::string("Couldn't set owner of the `")
                        + main_dir_name.data()
-                       + std::string("` subdirectory"));
+                       + "` subdirectory");
 
        int ret = smack_setlabel(main_dir.data(), main_dir_smack.data(), SMACK_LABEL_ACCESS);
        if (ret)
                throw std::runtime_error(std::string("Couldn't set SMACK attributes for `")
                        + main_dir_name.data()
-                       + std::string("` subdirectory"));
+                       + "` subdirectory");
 }
 
 void fs_helpers::add_user_subsession(const int session_uid, const int subsession_id)