1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0026988: Fresh compiler warnings (VC++ 14, GCC 5.2.1, CLang 3.6.2)

Compiler warnings eliminated:

- VC++: potential use of uninitialized variable
- GCC: potential use of uninitialized variable [-Wmaybe-uninitialized], redundant const on return value [-Wignored-qualifiers]
- CLang: missing override specifier on overloaded virtual function [-Winconsistent-missing-override], function call within typeid() [-Wpotentially-evaluated-expression]
This commit is contained in:
abv
2015-12-13 13:21:54 +03:00
committed by bugmaster
parent 795be040eb
commit c785481848
20 changed files with 83 additions and 89 deletions

View File

@@ -100,14 +100,6 @@ IVtkDraw_Interactor::~IVtkDraw_Interactor()
{
}
//===========================================================
// Function : Copy constructor
// Purpose :
//===========================================================
IVtkDraw_Interactor::IVtkDraw_Interactor (const IVtkDraw_Interactor& )
{
}
//===========================================================
// Function : SetShapePicker
// Purpose :

View File

@@ -69,10 +69,8 @@ public:
protected:
IVtkDraw_Interactor();
IVtkDraw_Interactor (const IVtkDraw_Interactor& );
~IVtkDraw_Interactor();
#ifdef _WIN32
friend LRESULT CALLBACK WndProc (HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam);
friend LRESULT CALLBACK ViewerWindowProc (HWND hwnd,
@@ -97,6 +95,10 @@ protected:
void GetMousePosition (Standard_Integer *theX, Standard_Integer *theY);
#endif
private:
// copying is prohibited
IVtkDraw_Interactor (const IVtkDraw_Interactor&);
void operator = (const IVtkDraw_Interactor&);
private: