Codebase list mozc / 9f1775f
Add std:: prefix to Windows build BUG=#392 TEST=unittest REF_BUG=71969651 REF_CL=185103299 REF_TIME=2018-02-09T16:19:43+09:00 REF_TIME_RAW=1518160783 +0900 Hiroyuki Komatsu 6 years ago
5 changed file(s) with 8 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
2929
3030 MAJOR=2
3131 MINOR=23
32 BUILD=2804
32 BUILD=2805
3333 REVISION=102
3434 # This version represents the version of Mozc IME engine (converter, predictor,
3535 # etc.). This version info is included both in the Mozc server and in the Mozc
131131 const int focused_index = candidates.focused_index();
132132 const int total_items = candidates.size();
133133
134 stringstream footer_string;
134 std::stringstream footer_string;
135135 footer_string << focused_index + 1
136136 << "/"
137137 << total_items
200200 }
201201
202202 bool StartServiceInternal(const ScopedSCHandle &service_handle,
203 const std::vector<wstring> &arguments) {
203 const std::vector<std::wstring> &arguments) {
204204 if (arguments.size() <= 0) {
205205 if (!::StartService(service_handle.get(), 0, NULL)) {
206206 LOG(ERROR) << "StartService failed: " << ::GetLastError();
327327 // load type is not DISABLED.
328328 if (state.running() && !now_running &&
329329 (state.load_type() != cache_service::Win32ServiceState::DISABLED)) {
330 std::vector<wstring> arguments(state.arguments_size());
330 std::vector<std::wstring> arguments(state.arguments_size());
331331 arguments.resize(state.arguments_size());
332332 for (size_t i = 0; i < state.arguments_size(); ++i) {
333333 if (Util::UTF8ToWide(state.arguments(i), &arguments[i]) <= 0) {
512512 ::Sleep(200); // wait for 0.2sec
513513 }
514514
515 return StartServiceInternal(service_handle, std::vector<wstring>());
515 return StartServiceInternal(service_handle, std::vector<std::wstring>());
516516 }
517517
518518 bool CacheServiceManager::HasEnoughMemory() {
380380 // set longer timeout, when the duration is shorter.
381381 const int duration = static_cast<int>(unlock_time - lock_time);
382382 const int timeout =
383 unlock_time == 0 ? 0 : max(kMinTimeout, kMaxTimeout - max(0, duration));
383 unlock_time == 0 ? 0 : std::max(kMinTimeout,
384 kMaxTimeout - std::max(0, duration));
384385
385386 const DWORD result = ::WaitForSingleObject(g_stop_event, timeout);
386387 switch (result) {
7272 }
7373
7474 void NotifyFatalMessage(const string &msg, int line) {
75 ostringstream ostr;
75 std::ostringstream ostr;
7676 ostr << msg << " (line: " << line << ")";
7777 NotifyFatalMessageImpl(ostr.str());
7878 }