summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-10-26 16:13:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-10-26 16:21:10 +0200
commit89e875b50a275512c5732557c1d09d1e1f1cbfe9 (patch)
treec6c8b75fee2e31f9f700d6729d9c4b4d854344d2 /desktop
parentb6aa58c4d8af8b960b085646d97f73c912503a96 (diff)
Add sanity-check assertion
Change-Id: I119f008734e4978d6bcf5f786ae3604db5c0f8a9
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/registry/dp_backend.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index 57703d5d3986..ad6c2a83263c 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -26,6 +26,9 @@
*
************************************************************************/
+#include "sal/config.h"
+
+#include <cassert>
#include "dp_backend.h"
#include "dp_ucb.h"
@@ -85,6 +88,7 @@ PackageRegistryBackend::PackageRegistryBackend(
m_eContext( CONTEXT_UNKNOWN ),
m_readOnly( false )
{
+ assert(xContext.is());
boost::optional<OUString> cachePath;
boost::optional<bool> readOnly;
comphelper::unwrapArgs( args, m_context, cachePath, readOnly );