]> git.sesse.net Git - nageru/commitdiff
Fix a few Clang warnings.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 21 Apr 2018 10:01:26 +0000 (12:01 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 21 Apr 2018 10:01:26 +0000 (12:01 +0200)
cef_capture.cpp
cef_capture.h
nageru_cef_app.h

index f692c857f0201b1800a7cd913fdb40af3b701fbb..b6b8cca489ff782182541101a1db372ac1ab735a 100644 (file)
@@ -22,7 +22,7 @@ using namespace bmusb;
 extern CefRefPtr<NageruCefApp> cef_app;
 
 CEFCapture::CEFCapture(const string &url, unsigned width, unsigned height)
-       : cef_client(new NageruCEFClient(width, height, this)),
+       : cef_client(new NageruCEFClient(this)),
          width(width),
          height(height),
          start_url(url)
index 30cc4879593eaece48df9e315f755d51c38de3bf..29dededf7b60ad8696dfaec10c71c7f7e84844f4 100644 (file)
@@ -35,8 +35,8 @@ class CEFCapture;
 class NageruCEFClient : public CefClient, public CefRenderHandler, public CefLoadHandler
 {
 public:
-       NageruCEFClient(int width, int height, CEFCapture *parent)
-               : width(width), height(height), parent(parent) {}
+       NageruCEFClient(CEFCapture *parent)
+               : parent(parent) {}
 
        CefRefPtr<CefRenderHandler> GetRenderHandler() override
        {
@@ -52,14 +52,13 @@ public:
 
        void OnPaint(CefRefPtr<CefBrowser> browser, PaintElementType type, const RectList &dirtyRects, const void *buffer, int width, int height) override;
 
-       bool GetViewRect(CefRefPtr<CefBrowser> browser, CefRect &rect);
+       bool GetViewRect(CefRefPtr<CefBrowser> browser, CefRect &rect) override;
 
        // CefLoadHandler.
 
        void OnLoadEnd(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, int httpStatusCode) override;
 
 private:
-       int width, height;
        CEFCapture *parent;
 
        IMPLEMENT_REFCOUNTING(NageruCEFClient);
@@ -149,7 +148,7 @@ public:
                assert(pixel_format == bmusb::PixelFormat_8BitBGRA);
        }
 
-       bmusb::PixelFormat get_current_pixel_format() const
+       bmusb::PixelFormat get_current_pixel_format() const override
        {
                return bmusb::PixelFormat_8BitBGRA;
        }
index 1a7ca1afeb6b9c015fa6b40a5b692b8af02b3424..7b8969bbc7224e863d13b191049f424390b0cae7 100644 (file)
@@ -76,7 +76,7 @@ public:
                return this;
        }
 
-       void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line);
+       void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line) override;
 
 private:
        void cef_thread_func();