diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-23 20:15:28 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-04 14:03:13 +0100 |
commit | fd243a8d3ae8e776fb2af1136feee7f8c083d2da (patch) | |
tree | 71cd7b2fcac7d398154afe58a579d87d7fadf9bd /win/winvnc | |
parent | 3143bfa1545c2aa70781c5c780df7e66f123614f (diff) | |
download | tigervnc-fd243a8d3ae8e776fb2af1136feee7f8c083d2da.tar.gz tigervnc-fd243a8d3ae8e776fb2af1136feee7f8c083d2da.zip |
Remove "str" prefix from string helpers
This matches the naming in STL, which is what we are mostly mimicing now
that we are using std::string for these functions.
Diffstat (limited to 'win/winvnc')
-rw-r--r-- | win/winvnc/VNCServerService.cxx | 2 | ||||
-rw-r--r-- | win/winvnc/winvnc.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/win/winvnc/VNCServerService.cxx b/win/winvnc/VNCServerService.cxx index d2a994aa..4754d720 100644 --- a/win/winvnc/VNCServerService.cxx +++ b/win/winvnc/VNCServerService.cxx @@ -109,7 +109,7 @@ HANDLE LaunchProcessWin(DWORD /*dwSessionId*/) { ModuleFileName filename; std::string cmdLine; - cmdLine = strFormat("\"%s\" -noconsole -service_run", filename.buf); + cmdLine = format("\"%s\" -noconsole -service_run", filename.buf); STARTUPINFO si; ZeroMemory(&si, sizeof si); si.cb = sizeof si; diff --git a/win/winvnc/winvnc.cxx b/win/winvnc/winvnc.cxx index 2e705bf0..604df12e 100644 --- a/win/winvnc/winvnc.cxx +++ b/win/winvnc/winvnc.cxx @@ -154,9 +154,9 @@ static void processParams(int argc, char** argv) { runServer = false; std::string result; DWORD state = rfb::win32::getServiceState(VNCServerService::Name); - result = strFormat("The %s Service is in the %s state.", - VNCServerService::Name, - rfb::win32::serviceStateName(state)); + result = format("The %s Service is in the %s state.", + VNCServerService::Name, + rfb::win32::serviceStateName(state)); MsgBoxOrLog(result.c_str()); } else if (strcasecmp(argv[i], "-service") == 0) { printf("Run in service mode\n"); |