[vlc-commits] npapi: npolibvlc: Mark all overriden virtual methods with 'override'
Hugo Beauzée-Luyssen
git at videolan.org
Tue Apr 21 10:16:02 CEST 2015
npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Mar 30 14:52:28 2015 +0200| [556fc00e3167ca296545fc7b36c3918f83b3ea79] | committer: Hugo Beauzée-Luyssen
npapi: npolibvlc: Mark all overriden virtual methods with 'override'
Also mark them explicitely as virtual
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=556fc00e3167ca296545fc7b36c3918f83b3ea79
---
npapi/npruntime/npolibvlc.h | 53 ++++++++++++++++++++++---------------------
1 file changed, 27 insertions(+), 26 deletions(-)
diff --git a/npapi/npruntime/npolibvlc.h b/npapi/npruntime/npolibvlc.h
index de17316..0868203 100644
--- a/npapi/npruntime/npolibvlc.h
+++ b/npapi/npruntime/npolibvlc.h
@@ -53,7 +53,7 @@ protected:
static const int methodCount;
static const NPUTF8 * const methodNames[];
- InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
+ InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result) override;
private:
NPObject *audioObj;
@@ -76,13 +76,13 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
- InvokeResult setProperty(int index, const NPVariant &value);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
+ virtual InvokeResult setProperty(int index, const NPVariant &value) override;
static const int methodCount;
static const NPUTF8 * const methodNames[];
- InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
+ virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result) override;
};
class LibvlcInputNPObject: public RuntimeNPObject
@@ -98,8 +98,8 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
- InvokeResult setProperty(int index, const NPVariant &value);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
+ virtual InvokeResult setProperty(int index, const NPVariant &value) override;
static const int methodCount;
static const NPUTF8 * const methodNames[];
@@ -118,7 +118,8 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
+
static const int methodCount;
static const NPUTF8 * const methodNames[];
};
@@ -135,12 +136,12 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
static const int methodCount;
static const NPUTF8 * const methodNames[];
- InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
+ virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result) override;
};
class LibvlcPlaylistNPObject: public RuntimeNPObject
@@ -157,12 +158,12 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
static const int methodCount;
static const NPUTF8 * const methodNames[];
- InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
+ virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result) override;
void parseOptions(const NPString& s, int *i_options, char*** ppsz_options);
void parseOptions(NPObject *obj, int *i_options, char*** ppsz_options);
@@ -183,13 +184,13 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
- InvokeResult setProperty(int index, const NPVariant &value);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
+ virtual InvokeResult setProperty(int index, const NPVariant &value) override;
static const int methodCount;
static const NPUTF8 * const methodNames[];
- InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
+ virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result) override;
};
@@ -206,13 +207,13 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
- InvokeResult setProperty(int index, const NPVariant &value);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
+ virtual InvokeResult setProperty(int index, const NPVariant &value) override;
static const int methodCount;
static const NPUTF8 * const methodNames[];
- InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
+ virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result) override;
private:
NPObject *marqueeObj;
@@ -232,13 +233,13 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
- InvokeResult setProperty(int index, const NPVariant &value);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
+ virtual InvokeResult setProperty(int index, const NPVariant &value) override;
static const int methodCount;
static const NPUTF8 * const methodNames[];
- InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
+ virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result) override;
};
class LibvlcLogoNPObject: public RuntimeNPObject
@@ -253,13 +254,13 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
- InvokeResult setProperty(int index, const NPVariant &value);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
+ virtual InvokeResult setProperty(int index, const NPVariant &value) override;
static const int methodCount;
static const NPUTF8 * const methodNames[];
- InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
+ virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result) override;
};
class LibvlcDeinterlaceNPObject: public RuntimeNPObject
@@ -274,12 +275,12 @@ protected:
static const int propertyCount;
static const NPUTF8 * const propertyNames[];
- InvokeResult getProperty(int index, NPVariant &result);
- InvokeResult setProperty(int index, const NPVariant &value);
+ virtual InvokeResult getProperty(int index, NPVariant &result) override;
+ virtual InvokeResult setProperty(int index, const NPVariant &value) override;
static const int methodCount;
static const NPUTF8 * const methodNames[];
- InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result);
+ virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result) override;
};
More information about the vlc-commits
mailing list