Skip to content

Commit

Permalink
Fix some issues with last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxad0127 committed Apr 17, 2012
1 parent 7946caf commit ebd21e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion plugins/Brushes.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ class FloodBrush : public Brush
Core *c_;
};

std::ostream &operator<<(std::ostream &stream, const Brush& brush) {
inline std::ostream &operator<<(std::ostream &stream, const Brush& brush) {
stream << brush.str();
return stream;
}

inline std::ostream &operator<<(std::ostream &stream, const Brush* brush) {
stream << brush->str();
return stream;
}
3 changes: 2 additions & 1 deletion plugins/tiletypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void printState(color_ostream &out)
{
out << "Filter: " << filter << std::endl
<< "Paint: " << paint << std::endl
<< "Brush: " << brush->str() << std::endl;
<< "Brush: " << brush << std::endl;
}

//zilpin: These two functions were giving me compile errors in VS2008, so I cheated with the C style loop below, just to get it to build.
Expand Down Expand Up @@ -559,6 +559,7 @@ bool processTileType(color_ostream & out, TileType &paint, std::vector<std::stri
}
else if (option == "all" || option == "a")
{
loc--;
for (; loc < end; loc++)
{
std::string param = params[loc];
Expand Down

0 comments on commit ebd21e9

Please sign in to comment.