X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPVViewer%2FPVViewer_LogWindowAdapter.cxx;h=ac4fa9c4a2276d191546018ad13c2c7c3ea0dfd8;hb=2400f3659b65727d5a776dccd3d5dd506d755a88;hp=736b77b687053c44ad156948ff33f6070fc20996;hpb=be5ccfda044312edcd493d753af4f8491b07b28c;p=modules%2Fgui.git diff --git a/src/PVViewer/PVViewer_LogWindowAdapter.cxx b/src/PVViewer/PVViewer_LogWindowAdapter.cxx index 736b77b68..ac4fa9c4a 100644 --- a/src/PVViewer/PVViewer_LogWindowAdapter.cxx +++ b/src/PVViewer/PVViewer_LogWindowAdapter.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF R&D +// Copyright (C) 2010-2015 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -21,15 +21,13 @@ #include -#include +#include #include #include #include vtkStandardNewMacro(PVViewer_LogWindowAdapter); - - /*! * Put the message in the log window. */ @@ -57,7 +55,8 @@ PVViewer_LogWindowAdapter::PVViewer_LogWindowAdapter() : TextCount(0), ErrorCount(0), WarningCount(0), - GenericWarningCount(0) + GenericWarningCount(0), + logWindow(0) { } @@ -85,15 +84,6 @@ const unsigned int PVViewer_LogWindowAdapter::getGenericWarningCount() return this->GenericWarningCount; } -static LogWindow* getLogWindow() -{ - LogWindow* wnd = 0; - LightApp_Application* anApp = dynamic_cast( SUIT_Session::session()->activeApplication() ); - if ( anApp ) - wnd = anApp->logWindow(); - return wnd; -} - void PVViewer_LogWindowAdapter::DisplayText(const char* text) { ++this->TextCount;