Skip to content

Commit

Permalink
Fixed a couple of warnings:
Browse files Browse the repository at this point in the history
warning C4806: '==' : unsafe operation: no value of type 'bool' promoted to type 'Qtilities::Core::Interfaces::IExportable::Result' can equal the given constant
  • Loading branch information
JPNaude committed Jan 9, 2013
1 parent 56217a8 commit 8d28deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/source/ObserverData.cpp
Expand Up @@ -782,7 +782,7 @@ Qtilities::Core::Interfaces::IExportable::ExportResultFlags Qtilities::Core::Obs
if (subject_filters.at(i)->isExportable()) {
QDomElement subject_filter = doc->createElement("SubjectFilter");
subject_data.appendChild(subject_filter);
if (subject_filters.at(i)->instanceFactoryInfo().exportXml(doc,&subject_filter,exportVersion()) == IExportable::Failed) {
if (!subject_filters.at(i)->instanceFactoryInfo().exportXml(doc,&subject_filter,exportVersion())) {
if (relational_table)
delete relational_table;
return IExportable::Failed;
Expand Down Expand Up @@ -872,7 +872,7 @@ Qtilities::Core::Interfaces::IExportable::ExportResultFlags Qtilities::Core::Obs
subject_item.setAttribute("Ownership",Observer::objectOwnershipToString(ownership));

// 4. Factory Data:
if (export_iface->instanceFactoryInfo().exportXml(doc,&subject_item,exportVersion()) == IExportable::Failed) {
if (!export_iface->instanceFactoryInfo().exportXml(doc,&subject_item,exportVersion())) {
if (relational_table)
delete relational_table;
return IExportable::Failed;
Expand Down

0 comments on commit 8d28deb

Please sign in to comment.