Skip to content

Commit

Permalink
Corrected g++ anal issues
Browse files Browse the repository at this point in the history
A few warnings and compiler errors from g++.
  • Loading branch information
seancUNC committed Oct 17, 2016
1 parent f148f06 commit 8951329
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Menge/MengeCore/BFSM/Goals/Goal.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ namespace Menge {
*
* @param geometry The geometry for this goal; the goal takes ownership.
*/
inline void setGeometry( Math::Geometry2D * geometry );
void setGeometry( Math::Geometry2D * geometry );

/*!
* @brief Sets this goal's goal set.
Expand Down
2 changes: 1 addition & 1 deletion src/Menge/MengeCore/Math/Geometry2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ namespace Menge {
*
* @returns The box size.
*/
const Vector2 & getSize() const { return _maxPt - _minPt; }
const Vector2 getSize() const { return _maxPt - _minPt; }

/*!
* @brief Reports the box's maximal point (in x & y directions).
Expand Down
4 changes: 2 additions & 2 deletions src/Menge/MengeCore/resources/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace Menge {
logger << Logger::ERR_MSG << "Error parsing roadmap: format error for edge " << ( e + 1 ) << ".\n";
delete [] vertNbr;
graph->destroy();
return false;
return 0x0;
}
edge.setDistance( graph->_vertices[ from ].getDistance( graph->_vertices[ to ] ) );
edge.setNeighbor( &graph->_vertices[ to ] );
Expand Down Expand Up @@ -344,4 +344,4 @@ namespace Menge {

//////////////////////////////////////////////////////////////////////////////////////

} // namespace Menge
} // namespace Menge

0 comments on commit 8951329

Please sign in to comment.