From: abn Date: Fri, 6 Nov 2015 15:13:51 +0000 (+0100) Subject: Fixed wild casting from pointer to bool. X-Git-Tag: V8_0_0a1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d55d41ecbb7310b64da8dfa407d3f075c0fe4fd9;p=modules%2Fgui.git Fixed wild casting from pointer to bool. Surprising this has worked so far ... --- diff --git a/src/SalomeApp/SalomeApp_StudyPropertiesDlg.cxx b/src/SalomeApp/SalomeApp_StudyPropertiesDlg.cxx index 8c5e8db03..1e2f82524 100644 --- a/src/SalomeApp/SalomeApp_StudyPropertiesDlg.cxx +++ b/src/SalomeApp/SalomeApp_StudyPropertiesDlg.cxx @@ -173,7 +173,7 @@ SalomeApp_StudyPropertiesDlg::~SalomeApp_StudyPropertiesDlg() */ void SalomeApp_StudyPropertiesDlg::initData() { - bool hasData = myStudyDoc; + bool hasData = (myStudyDoc != NULL); _PTR(AttributeStudyProperties) propAttr; if (hasData) propAttr = myStudyDoc->GetProperties();