summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-03-11 09:49:29 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-03-11 09:49:29 +0000
commitae3d3a61d7a80defc260ee10bf18485af39f7676 (patch)
tree74234be36aaf031b9c3189a7a2fe2e0511b70a43 /desktop
parent8a7755a9c65ab0051b1569948c6c80013ca9075b (diff)
INTEGRATION: CWS lobeta2 (1.2.4); FILE MERGED
2005/03/01 14:48:54 lo 1.2.4.2: #i30456# 2004/12/13 09:30:46 lo 1.2.4.1: re-enable migration
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/migration/migration.cxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx
index 775604027aa8..6abb3aca6144 100644
--- a/desktop/source/migration/migration.cxx
+++ b/desktop/source/migration/migration.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: migration.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: obo $ $Date: 2004-11-15 15:48:08 $
+ * last change: $Author: vg $ $Date: 2005-03-11 10:49:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -141,11 +141,7 @@ void Migration::cancelMigration()
sal_Bool Migration::checkMigration()
{
-#ifdef PRODUCT
- return sal_False;
-#else
return getImpl()->checkMigration();
-#endif
}
OUString Migration::getOldVersionName()
@@ -417,6 +413,7 @@ strings_vr MigrationImpl::compileFileList()
return vrResult;
}
+
void MigrationImpl::copyConfig()
{
try {
@@ -467,10 +464,11 @@ void MigrationImpl::copyConfig()
{
OUString component = seqComponents[i];
importerArgs[2].Value = makeAny(seqComponents[i]);
- Any aResult = xImporter->execute(importerArgs);
- Exception aException;
- if (aResult >>= aException)
- {
+ try {
+ Any aResult = xImporter->execute(importerArgs);
+ Exception myException;
+ if (aResult >>= myException) throw myException;
+ } catch(Exception& aException) {
OString aMsg("Exception in config layer import.\ncomponent: ");
aMsg += OUStringToOString(seqComponents[i], RTL_TEXTENCODING_ASCII_US);
aMsg += "\nmessage: ";