@@ -54,48 +54,48 @@ class TPythonCallback : public PyCallable {
5454 fCallable = callable;
5555 }
5656
57- virtual ~TPythonCallback () {
57+ ~TPythonCallback () override {
5858 Py_DECREF (fCallable );
5959 fCallable = nullptr ;
6060 }
6161
62- virtual PyObject* GetSignature (bool /* show_formalargs*/ = true ) {
62+ PyObject* GetSignature (bool /* show_formalargs*/ = true ) override {
6363 return CPyCppyy_PyText_FromString (" *args, **kwargs" );
6464 }
65- virtual PyObject* GetPrototype (bool /* show_formalargs*/ = true ) {
65+ PyObject* GetPrototype (bool /* show_formalargs*/ = true ) override {
6666 return CPyCppyy_PyText_FromString (" <callback>" );
6767 }
68- virtual PyObject* GetDocString () {
68+ PyObject* GetDocString () override {
6969 if (PyObject_HasAttrString (fCallable , " __doc__" )) {
7070 return PyObject_GetAttrString (fCallable , " __doc__" );
7171 } else {
7272 return GetPrototype ();
7373 }
7474 }
7575
76- virtual int GetPriority () { return 100 ; };
77- virtual bool IsGreedy () { return false ; };
76+ int GetPriority () override { return 100 ; };
77+ bool IsGreedy () override { return false ; };
7878
79- virtual int GetMaxArgs () { return 100 ; };
80- virtual PyObject* GetCoVarNames () { // TODO: pick these up from the callable
79+ int GetMaxArgs () override { return 100 ; };
80+ PyObject* GetCoVarNames () override { // TODO: pick these up from the callable
8181 Py_RETURN_NONE;
8282 }
83- virtual PyObject* GetArgDefault (int /* iarg */ , bool /* silent */ =true ) {
83+ PyObject* GetArgDefault (int /* iarg */ , bool /* silent */ =true ) override {
8484 Py_RETURN_NONE; // TODO: pick these up from the callable
8585 }
8686
87- virtual PyObject* GetScopeProxy () { // should this be the module ??
87+ PyObject* GetScopeProxy () override { // should this be the module ??
8888 Py_RETURN_NONE;
8989 }
9090
91- virtual Cppyy::TCppFuncAddr_t GetFunctionAddress () {
91+ Cppyy::TCppFuncAddr_t GetFunctionAddress () override {
9292 return (Cppyy::TCppFuncAddr_t)nullptr ;
9393 }
9494
95- virtual PyCallable* Clone () { return new TPythonCallback (*this ); }
95+ PyCallable* Clone () override { return new TPythonCallback (*this ); }
9696
97- virtual PyObject* Call (CPPInstance*& self,
98- CPyCppyy_PyArgs_t args, size_t nargsf, PyObject* kwds, CallContext* /* ctxt = 0 */ ) {
97+ PyObject* Call (CPPInstance*& self,
98+ CPyCppyy_PyArgs_t args, size_t nargsf, PyObject* kwds, CallContext* /* ctxt = 0 */ ) override {
9999
100100#if PY_VERSION_HEX >= 0x03080000
101101 if (self) {
0 commit comments