Skip to content

Commit

Permalink
Fix 1 ClangTidyReadability findings:
Browse files Browse the repository at this point in the history
* redundant string conversion

#codehealth

Tested:
    Local presubmit tests passed.
PiperOrigin-RevId: 531417011
  • Loading branch information
Mozc team authored and hiroyuki-komatsu committed May 12, 2023
1 parent 4368ea5 commit 01421b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/mozc_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void InitMozcAndMozcServer(const char *arg0, int *argc, char ***argv,

int MozcServer::Run() {
std::string mutex_name = "server";
mozc::ProcessMutex mutex(mutex_name.c_str());
mozc::ProcessMutex mutex(mutex_name);
if (!mutex.Lock()) {
LOG(INFO) << "Mozc Server is already running";
return -1;
Expand Down

0 comments on commit 01421b7

Please sign in to comment.