Commit 61a1a50f authored by James's avatar James
Browse files

Clean up pair in mouse tracker

parent aaf6c9ed
......@@ -36,7 +36,7 @@ public:
/// Get the pressed position, relative to the framebuffer.
std::pair<unsigned, unsigned> GetPressedPosition() {
return std::pair<unsigned, unsigned>(projectedX, projectedY);
return {static_cast<const unsigned int &>(projectedX), static_cast<const unsigned int &>(projectedY)};
}
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment