From 44f9a4d038026e43d084bb601a337c171348bb36 Mon Sep 17 00:00:00 2001 From: Vladimir Sukhonosov Date: Tue, 25 Jan 2022 22:14:00 +0300 Subject: [PATCH] get rid of c++11 stuff --- common/rfb/H264Decoder.cxx | 4 ++-- common/rfb/H264DecoderContext.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/rfb/H264Decoder.cxx b/common/rfb/H264Decoder.cxx index fd71ea03..27c380bb 100644 --- a/common/rfb/H264Decoder.cxx +++ b/common/rfb/H264Decoder.cxx @@ -115,8 +115,8 @@ void H264Decoder::decodeRect(const Rect& r, const void* buffer, os::AutoMutex lock(&mutex); if (contexts.size() >= MAX_H264_INSTANCES) { - auto excecc_ctx = contexts.front(); - delete excecc_ctx; + H264DecoderContext* excess_ctx = contexts.front(); + delete excess_ctx; contexts.pop_front(); } ctx = H264DecoderContext::createContext(r); diff --git a/common/rfb/H264DecoderContext.h b/common/rfb/H264DecoderContext.h index 2316b6b4..bd93b46f 100644 --- a/common/rfb/H264DecoderContext.h +++ b/common/rfb/H264DecoderContext.h @@ -42,7 +42,7 @@ namespace rfb { protected: os::Mutex mutex; rfb::Rect rect; - bool initialized = false; + bool initialized; H264DecoderContext(const Rect &r) : rect(r) { initialized = false; } -- 2.39.5