Skip to content

Commit

Permalink
Fixed: Compiler error from clang
Browse files Browse the repository at this point in the history
See partitioner.cpp:1494. An argument with a non-const reference type
cannot be bound to a temporary lvalue, such as the one returned by
collectHEdges().
  • Loading branch information
skyjake committed Aug 31, 2012
1 parent e2a2b4b commit 49c69f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/map/bsp/partitioner.cpp
Expand Up @@ -1283,7 +1283,7 @@ struct Partitioner::Instance
* to build the leaf using.
* @return Newly created BspLeaf else @c NULL if degenerate.
*/
BspLeaf* buildBspLeaf(std::list<HEdge*>& hedges)
BspLeaf* buildBspLeaf(const std::list<HEdge*>& hedges)
{
if(!hedges.size()) return 0;

Expand Down

0 comments on commit 49c69f9

Please sign in to comment.