[Mobies-commit] [commit] r4233 - UDM/trunk/src/UdmOclPat/GOCL/src
endre at redhat3.isis.vanderbilt.edu
endre at redhat3.isis.vanderbilt.edu
Fri Jan 10 23:45:25 CST 2014
Author: endre
Date: Fri Jan 10 23:45:25 2014
New Revision: 4233
Log:
silence one warning, std::ofstream was compared to NULL which is not allowed. std::ofstream has operator!() which can be used for such purpose.
Modified:
UDM/trunk/src/UdmOclPat/GOCL/src/OCLTree.cpp
Modified: UDM/trunk/src/UdmOclPat/GOCL/src/OCLTree.cpp
==============================================================================
--- UDM/trunk/src/UdmOclPat/GOCL/src/OCLTree.cpp Fri Jan 10 23:45:19 2014 (r4232)
+++ UDM/trunk/src/UdmOclPat/GOCL/src/OCLTree.cpp Fri Jan 10 23:45:25 2014 (r4233)
@@ -2900,7 +2900,8 @@
OclMeta::Object TextNode::Evaluate( ObjectContext& context )
{
- if ( PatHelper::f_pat_output == NULL || *(PatHelper::f_pat_output) == NULL || !PatHelper::f_pat_output->is_open() ) {
+ //std::ofstream has operator!().
+ if ( PatHelper::f_pat_output == NULL || !(*PatHelper::f_pat_output) /*== NULL*/ || !PatHelper::f_pat_output->is_open() ) {
fprintf(stdout, "%s", m_strValue.c_str());
} else {
*(PatHelper::f_pat_output) << m_strValue.c_str();
More information about the Mobies-commit
mailing list