Skip to content

Commit

Permalink
simplify GLWidget::OgreHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters committed Jun 21, 2016
1 parent 4d0f429 commit 98a5eb7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions gazebo/gui/GLWidget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -903,15 +903,7 @@ rendering::UserCameraPtr GLWidget::Camera() const
//////////////////////////////////////////////////
std::string GLWidget::OgreHandle() const
{
std::string ogreHandle;

#if defined(__APPLE__)
ogreHandle = std::to_string(reinterpret_cast<uint32_t>(this->winId()));
#else
ogreHandle = std::to_string(static_cast<uint64_t>(this->winId()));
#endif

return ogreHandle;
return std::to_string(static_cast<uint64_t>(this->winId()));
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit 98a5eb7

Please sign in to comment.