Skip to content

Commit

Permalink
Compilation fixes for !wxUSE_STL & old wx versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Oct 7, 2018
1 parent 7cd752a commit 316cf9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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/colorscheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ wxColour ColorScheme::DoGet(Color color, Mode mode)
#elif defined(SUPPORTS_BGALPHA)
return sRGB(255, 255, 255, 0.35);
#else
return DoGet(Color::ItemContextBg, type);
return DoGet(Color::ItemContextBg, mode);
#endif

// Tags:
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 316cf9c

Please sign in to comment.