X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/163b3ad72c6729733881e74608af586a99f43726..74b1f0b45e0f0bc7e25c5f32bb495e3e4bcd3392:/src/msw/snglinst.cpp diff --git a/src/msw/snglinst.cpp b/src/msw/snglinst.cpp index 7ccf5af9e0..1e5d08ef79 100644 --- a/src/msw/snglinst.cpp +++ b/src/msw/snglinst.cpp @@ -52,10 +52,10 @@ public: bool Create(const wxString& name) { - m_hMutex = ::CreateMutex(NULL, FALSE, name.wx_str()); + m_hMutex = ::CreateMutex(NULL, FALSE, name.t_str()); if ( !m_hMutex ) { - wxLogLastError(_T("CreateMutex")); + wxLogLastError(wxT("CreateMutex")); return false; } @@ -69,7 +69,7 @@ public: bool WasOpened() const { wxCHECK_MSG( m_hMutex, false, - _T("can't be called if mutex creation failed") ); + wxT("can't be called if mutex creation failed") ); return m_wasOpened; } @@ -80,7 +80,7 @@ public: { if ( !::CloseHandle(m_hMutex) ) { - wxLogLastError(_T("CloseHandle(mutex)")); + wxLogLastError(wxT("CloseHandle(mutex)")); } } } @@ -92,7 +92,7 @@ private: // the mutex handle, may be NULL HANDLE m_hMutex; - DECLARE_NO_COPY_CLASS(wxSingleInstanceCheckerImpl) + wxDECLARE_NO_COPY_CLASS(wxSingleInstanceCheckerImpl); }; // ============================================================================ @@ -103,19 +103,19 @@ bool wxSingleInstanceChecker::Create(const wxString& name, const wxString& WXUNUSED(path)) { wxASSERT_MSG( !m_impl, - _T("calling wxSingleInstanceChecker::Create() twice?") ); + wxT("calling wxSingleInstanceChecker::Create() twice?") ); // creating unnamed mutex doesn't have the same semantics! - wxASSERT_MSG( !name.empty(), _T("mutex name can't be empty") ); + wxASSERT_MSG( !name.empty(), wxT("mutex name can't be empty") ); m_impl = new wxSingleInstanceCheckerImpl; return m_impl->Create(name); } -bool wxSingleInstanceChecker::IsAnotherRunning() const +bool wxSingleInstanceChecker::DoIsAnotherRunning() const { - wxCHECK_MSG( m_impl, false, _T("must call Create() first") ); + wxCHECK_MSG( m_impl, false, wxT("must call Create() first") ); // if the mutex had been opened, another instance is running - otherwise we // would have created it