Skip to content

Commit 7395c1a

Browse files
committed
Compilation fixes for !wxUSE_STL
1 parent 7cd752a commit 7395c1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/catalog_xliff.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class XLIFF12CatalogItem : public XLIFFCatalogItem
229229
}
230230
else
231231
{
232-
m_translations.emplace_back("");
232+
m_translations.push_back("");
233233
}
234234

235235
for (auto note: node.children("note"))
@@ -332,7 +332,7 @@ class XLIFF2CatalogItem : public XLIFFCatalogItem
332332
}
333333
else
334334
{
335-
m_translations.emplace_back("");
335+
m_translations.push_back("");
336336
}
337337

338338
std::string state = node.attribute("subState").value();

src/str_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ inline wxString to_wx(const char *utf8)
9090

9191
inline wxString to_wx(const std::string& utf8)
9292
{
93-
return wxString::FromUTF8(utf8);
93+
return wxString::FromUTF8(utf8.c_str());
9494
}
9595

9696
#if defined(__cplusplus) && defined(__OBJC__)

0 commit comments

Comments
 (0)