summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-10 23:54:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-09 13:41:35 +0200
commit8f6ecf2c86c70835efca9537f862c56431be2f8b (patch)
treee9464c11c4483bac8fb7fc163eb24412731b7537 /desktop
parent4a5c42950822b495e3b72ef513339101220e7304 (diff)
warning C4702: unreachable code
Change-Id: Icec8f9e37fa679b25d9bd44de56c98477d758abc (cherry picked from commit e940b0f5e2b57c67b93ffadd7063ec650aa7bcbf) Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
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
}
}