Files
TreeMaker/Resolve-ambiguous-call-to-tmOnAssert.patch
Aaron Puchert 909e396ea1 - Add metadata to patches.
- Add pointer to git repository with all patches.
- Use %autopatch to simplify patch application.

OBS-URL: https://build.opensuse.org/package/show/science/TreeMaker?expand=0&rev=2
2023-04-19 00:29:54 +00:00

24 lines
888 B
Diff

From: Aaron Puchert <aaronpuchert@alice-dsl.net>
Date: Sun, 9 Apr 2023 01:38:17 +0200
Subject: [PATCH 13/20] Resolve ambiguous call to tmOnAssert
The conversion to `const wxChar*` was probably implicit previously, if
needed at all.
---
Source/tmHeader.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Source/tmHeader.cpp b/Source/tmHeader.cpp
index 53eda36..edd6b52 100644
--- a/Source/tmHeader.cpp
+++ b/Source/tmHeader.cpp
@@ -113,7 +113,7 @@ void tmOnAssert(int cond, const char* szFile, int nLine,
wxString strFile; strFile.FromAscii(szFile);
wxString strCond; strCond.FromAscii(szCond);
wxString strMsg; strMsg.FromAscii(szMsg);
- tmOnAssert(cond, strFile.c_str(), nLine, strCond.c_str(), strMsg.c_str());
+ tmOnAssert(cond, strFile.c_str().AsWChar(), nLine, strCond.c_str().AsWChar(), strMsg.c_str().AsWChar());
}
#endif // wxUSE_UNICODE