Skip to content

Commit

Permalink
Fix compilation in OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Apr 25, 2020
1 parent c652a7f commit 98d4a7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion radiant/map/algorithm/Import.cpp
Expand Up @@ -307,7 +307,7 @@ class SimpleMapImportFilter :

public:
SimpleMapImportFilter() :
_root(new scene::BasicRootNode)
_root(std::make_shared<scene::BasicRootNode>())
{}

const scene::IMapRootNodePtr& getRootNode() const
Expand Down
4 changes: 2 additions & 2 deletions radiant/map/format/portable/PortableMapReader.cpp
Expand Up @@ -472,10 +472,10 @@ bool PortableMapReader::CanLoad(std::istream& stream)
// certain signature parts.
// This will fail if the XML is oddly formatted with e.g. line-breaks
std::string buffer(512, '\0');

for (int i = 0; i < 25; ++i)
{
stream.getline(buffer.data(), buffer.length());
std::getline(stream, buffer);

// Check if the format="portable" string is occurring somewhere
std::regex pattern(R"(<map[^>]+format=\"portable\")");
Expand Down
4 changes: 2 additions & 2 deletions radiant/selection/selectionset/SelectionSetToolmenu.cpp
Expand Up @@ -65,8 +65,8 @@ SelectionSetToolmenu::SelectionSetToolmenu() :
// where the label and combobox are supposed to be
label->Hide();
label->Show();
_toolMenu->Hide();
_toolMenu->Show();
_dropdown->Hide();
_dropdown->Show();
#endif

_mapEventHandler = GlobalMapModule().signal_mapEvent().connect(
Expand Down

0 comments on commit 98d4a7f

Please sign in to comment.