summaryrefslogtreecommitdiff
path: root/unodevtools/source/skeletonmaker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-04-11 15:39:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-04-11 16:11:19 +0200
commit7b3bef772d65f064393a764e1a6ef468dbf1b18d (patch)
treeb76895c7d109e07d08d550e61f27b6cb4cbba2ba /unodevtools/source/skeletonmaker
parent6e3e6ef7257e93743a72719581ef6fe0016e58e9 (diff)
No need to have uno-skeletonmaker depend on udkapi
...just for RuntimeException, which can be replaced with CannotDumpException. Change-Id: I258f5fe534d589b33e988f7e585168c1bc6990f8
Diffstat (limited to 'unodevtools/source/skeletonmaker')
-rw-r--r--unodevtools/source/skeletonmaker/skeletonmaker.cxx17
1 files changed, 1 insertions, 16 deletions
diff --git a/unodevtools/source/skeletonmaker/skeletonmaker.cxx b/unodevtools/source/skeletonmaker/skeletonmaker.cxx
index 8dd5d638325c..0ef5d2471597 100644
--- a/unodevtools/source/skeletonmaker/skeletonmaker.cxx
+++ b/unodevtools/source/skeletonmaker/skeletonmaker.cxx
@@ -21,17 +21,13 @@
#include "codemaker/typemanager.hxx"
#include "sal/main.h"
#include "rtl/process.h"
-#include "rtl/ustrbuf.hxx"
#include "unodevtools/options.hxx"
#include "skeletonjava.hxx"
#include "skeletoncpp.hxx"
-#include "com/sun/star/uno/Reference.hxx"
-
using namespace ::rtl;
using namespace ::skeletonmaker;
using namespace ::unodevtools;
-using namespace ::com::sun::star::uno;
namespace {
@@ -269,12 +265,7 @@ SAL_IMPLEMENT_MAIN()
// else illegal argument
- OUStringBuffer buf( 64 );
- buf.append("unexpected parameter \"");
- buf.append(arg);
- buf.append("\"!");
- throw RuntimeException(buf.makeStringAndClear(),
- css::uno::Reference< XInterface >());
+ throw CannotDumpException("unexpected parameter \"" + arg + "\"!");
}
if ( types.empty() && options.componenttype != 3) {
@@ -331,12 +322,6 @@ SAL_IMPLEMENT_MAIN()
} catch (const CannotDumpException & e) {
std::cout.flush();
std::cerr << "\nError: " << e.getMessage() << std::endl;
- } catch(const Exception& e) {
- std::cout.flush();
- std::cerr
- << "\nError: "
- << OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()
- << std::endl;
}
return 0;