Skip to content

Commit 782fe44

Browse files
Fixed few compiler warnings
1 parent 7c1ca4e commit 782fe44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Common/interface/RefCntAutoPtr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ class RefCntWeakPtr
283283
}
284284

285285
explicit RefCntWeakPtr(RefCntAutoPtr<T>& AutoPtr) :
286-
m_pObject( static_cast<T*>(AutoPtr) ),
287-
m_pRefCounters(AutoPtr ? ValidatedCast<RefCountersImpl>( AutoPtr->GetReferenceCounters() ) : nullptr)
286+
m_pRefCounters(AutoPtr ? ValidatedCast<RefCountersImpl>( AutoPtr->GetReferenceCounters() ) : nullptr),
287+
m_pObject( static_cast<T*>(AutoPtr) )
288288
{
289289
if( m_pRefCounters )
290290
m_pRefCounters->AddWeakRef();

Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ IMPLEMENT_QUERY_INTERFACE( SwapChainGLImpl, IID_SwapChainGL, TSwapChainBase )
7171

7272
void SwapChainGLImpl::Present()
7373
{
74+
#if PLATFORM_WIN32 || PLATFORM_LINUX || PLATFORM_ANDROID
7475
auto *pDeviceGL = ValidatedCast<RenderDeviceGLImpl>(m_pRenderDevice.RawPtr());
7576
auto &GLContext = pDeviceGL->m_GLContext;
76-
#if PLATFORM_WIN32 || PLATFORM_LINUX || PLATFORM_ANDROID
7777
GLContext.SwapBuffers();
7878
#elif PLATFORM_MACOS
7979
LOG_ERROR("Swap buffers operation must be performed by the app on MacOS");

0 commit comments

Comments
 (0)