Skip to content
Snippets Groups Projects
Commit be53df42 authored by sdegrande's avatar sdegrande
Browse files

Rename a 'shadowing' variable and remove an unused variable

These were issues reported by cppcheck.
parent 81fb23c3
No related branches found
No related tags found
No related merge requests found
......@@ -283,8 +283,8 @@ bool OpenXRSet::initOpenXRRuntime()
//====================
if (oxrConn.handTrackingEnabled) {
auto result = oxrHandTracking.create(oxrConn);
if (!oxrCheck(oxrConn, result, "[OpenXR] Disable hand tracking")) {
auto rtn = oxrHandTracking.create(oxrConn);
if (!oxrCheck(oxrConn, rtn, "[OpenXR] Disable hand tracking")) {
oxrConn.handTrackingEnabled = false;
}
}
......
......
......@@ -679,7 +679,6 @@ XrResult oxrSuggestBindings(const OxrConnection& oxrConn, const std::vector<XrAc
void oxrGetPoseAction(const OxrConnection& oxrConn, const OxrAction* action, OxrPose& data, XrSpace& actionSpace)
{
const OxrPoseAction* poseAction = reinterpret_cast<const OxrPoseAction*>(action);
data = std::nullopt;
XrActionStatePose handPoseState = { .type = XR_TYPE_ACTION_STATE_POSE, .next = nullptr };
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment