[Bf-blender-cvs] [cdc2768f65e] soc-2019-openxr: Cleanup: Don't cast away const in GHOST C-API
Julian Eisel
noreply at git.blender.org
Thu Aug 15 15:53:11 CEST 2019
Commit: cdc2768f65ec2993d7366ac220aaa2531f9c6aaa
Author: Julian Eisel
Date: Thu Aug 15 15:52:45 2019 +0200
Branches: soc-2019-openxr
https://developer.blender.org/rBcdc2768f65ec2993d7366ac220aaa2531f9c6aaa
Cleanup: Don't cast away const in GHOST C-API
===================================================================
M intern/ghost/intern/GHOST_C-api.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_C-api.cpp b/intern/ghost/intern/GHOST_C-api.cpp
index caa88f46ff9..a5d22f26a22 100644
--- a/intern/ghost/intern/GHOST_C-api.cpp
+++ b/intern/ghost/intern/GHOST_C-api.cpp
@@ -939,7 +939,7 @@ void GHOST_XrSessionEnd(GHOST_XrContextHandle xr_contexthandle)
int GHOST_XrSessionIsRunning(const GHOST_XrContextHandle xr_contexthandle)
{
- const GHOST_IXrContext *xr_context = (GHOST_IXrContext *)xr_contexthandle;
+ const GHOST_IXrContext *xr_context = (const GHOST_IXrContext *)xr_contexthandle;
GHOST_XR_CAPI_CALL_RET(xr_context->isSessionRunning(), xr_context);
return 0; // Only reached if exception is thrown.
}
More information about the Bf-blender-cvs
mailing list