summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-16 10:23:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-16 10:56:59 +0100
commit2c09909bce08b57fb66a59dcd70d2528b66fa9e1 (patch)
tree04fb459d96c841574328027c73d3b9cc86133319 /basic
parent6d13e2072d1775a81bd785d9f9a5c2dc6c1d2842 (diff)
avoid assert and crash-before-vcl-is-ready-to-show-it in dbgutil testtool
Diffstat (limited to 'basic')
-rw-r--r--basic/source/app/app.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/basic/source/app/app.cxx b/basic/source/app/app.cxx
index 6609cdcac806..9c5597d9a8de 100644
--- a/basic/source/app/app.cxx
+++ b/basic/source/app/app.cxx
@@ -213,8 +213,10 @@ uno::Reference< XContentProviderManager > InitializeUCB( void )
// set global factory
setProcessServiceFactory( xSMgr );
-// Create unconfigured Ucb:
- Sequence< Any > aArgs;
+// Create Ucb that can handle local files:
+ Sequence< Any > aArgs(2);
+ aArgs[0] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
+ aArgs[1] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
::ucbhelper::ContentBroker::initialize( xSMgr, aArgs );
uno::Reference< XContentProviderManager > xUcb =
::ucbhelper::ContentBroker::get()->getContentProviderManagerInterface();
@@ -252,7 +254,6 @@ int BasicApp::Main( )
try
{
- // this line is not ( afaics ) necessary ( remove from master )
uno::Reference< XContentProviderManager > xUcb = InitializeUCB();
{
DirEntry aIniPath( Config::GetConfigName( Config::GetDefDirectory(), CUniString("testtool") ) );