Skip to content

Commit

Permalink
Compilation fixes for !wxUSE_STL
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Oct 7, 2018
1 parent 7cd752a commit 7395c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/catalog_xliff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class XLIFF12CatalogItem : public XLIFFCatalogItem
}
else
{
m_translations.emplace_back("");
m_translations.push_back("");
}

for (auto note: node.children("note"))
Expand Down Expand Up @@ -332,7 +332,7 @@ class XLIFF2CatalogItem : public XLIFFCatalogItem
}
else
{
m_translations.emplace_back("");
m_translations.push_back("");
}

std::string state = node.attribute("subState").value();
Expand Down
2 changes: 1 addition & 1 deletion src/str_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ inline wxString to_wx(const char *utf8)

inline wxString to_wx(const std::string& utf8)
{
return wxString::FromUTF8(utf8);
return wxString::FromUTF8(utf8.c_str());
}

#if defined(__cplusplus) && defined(__OBJC__)
Expand Down

0 comments on commit 7395c1a

Please sign in to comment.