summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-10 23:54:33 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-11 00:15:06 +0200
commite940b0f5e2b57c67b93ffadd7063ec650aa7bcbf (patch)
treedc1ccc47b43bf7f8cf798e89486cac5b6ed928c5 /desktop
parente0551af94dd3bac9c64abea3831587896d330a53 (diff)
warning C4702: unreachable code
Change-Id: Icec8f9e37fa679b25d9bd44de56c98477d758abc
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/dp_persmap.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/source/deployment/dp_persmap.cxx b/desktop/source/deployment/dp_persmap.cxx
index 6c7cd943a847..fb7aecad00ba 100644
--- a/desktop/source/deployment/dp_persmap.cxx
+++ b/desktop/source/deployment/dp_persmap.cxx
@@ -144,7 +144,9 @@ bool PersistentMap::get( OString * value, OString const & key ) const
catch (DbException & exc) {
throw_rtexc( exc.get_errno(), exc.what() );
}
+#ifndef _MSC_VER
return false; // avoiding warning
+#endif
}
//______________________________________________________________________________
@@ -192,7 +194,9 @@ bool PersistentMap::erase( OString const & key, bool flush_immediately )
catch (DbException & exc) {
throw_rtexc( exc.get_errno(), exc.what() );
}
+#ifndef _MSC_VER
return false; // avoiding warning
+#endif
}
//______________________________________________________________________________
@@ -231,7 +235,9 @@ t_string2string_map PersistentMap::getEntries() const
catch (DbException & exc) {
throw_rtexc( exc.get_errno(), exc.what() );
}
+#ifndef _MSC_VER
return t_string2string_map(); // avoiding warning
+#endif
}
}