From b966497200b47ca5efb3a5853891ea4590927371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 26 Jul 2022 19:41:11 +0200 Subject: Use 's' instead of 'str' for as prefix for managed strings. --- c/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'c/main.cpp') diff --git a/c/main.cpp b/c/main.cpp index 00c9051..c3c555b 100644 --- a/c/main.cpp +++ b/c/main.cpp @@ -65,15 +65,15 @@ void OnTerminate() noexcept try { std::rethrow_exception(std::current_exception()); } catch (const term_t& t) { - std::wstring wstr; - if (PlString(t, &wstr)) - TerminateMsg(L"a Prolog exception", wstr.c_str()); + std::wstring ws; + if (PlString(t, &ws)) + TerminateMsg(L"a Prolog exception", ws.c_str()); else TerminateMsg(L"a Prolog exception", NULL); } catch (const Win32Error& e) { TerminateMsg(L"a Windows error", e.WhatW()); } catch (const std::exception& e) { - TerminateMsg(L"an exception", WstrFromSz(e.what()).c_str()); + TerminateMsg(L"an exception", WsFromSz(e.what()).c_str()); } catch (...) { TerminateMsg(L"an exception", NULL); } -- cgit v1.2.3