From 9a063f939b7ddd4fe177aecc3e2c21b4cd2346d1 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 2 Apr 2013 13:15:16 +0200 Subject: i18npool: cleanup macros This is the last one :) Change-Id: If3e546648a42bcc17e57fb4965f7cdc063243825 --- i18npool/source/breakiterator/breakiterator_unicode.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx index 77ca8319e841..5b24f8131242 100644 --- a/i18npool/source/breakiterator/breakiterator_unicode.cxx +++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx @@ -37,8 +37,6 @@ using namespace ::rtl; namespace com { namespace sun { namespace star { namespace i18n { -#define ERROR ::com::sun::star::uno::RuntimeException() - BreakIterator_Unicode::BreakIterator_Unicode() : cBreakIterator( "com.sun.star.i18n.BreakIterator_Unicode" ), // implementation name @@ -111,7 +109,7 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star:: status = U_ZERO_ERROR; udata_setAppData("OpenOffice", OpenOffice_dat, &status); - if ( !U_SUCCESS(status) ) throw ERROR; + if ( !U_SUCCESS(status) ) throw uno::RuntimeException(); OOoRuleBasedBreakIterator *rbi = NULL; @@ -172,14 +170,14 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star:: } if ( !U_SUCCESS(status) ) { icuBI->aBreakIterator=NULL; - throw ERROR; + throw uno::RuntimeException(); } } if (icuBI->aBreakIterator) { icuBI->maLocale=rLocale; newBreak=sal_True; } else { - throw ERROR; + throw uno::RuntimeException(); } } @@ -191,12 +189,12 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star:: icuBI->ut = utext_openUChars(icuBI->ut, pText, rText.getLength(), &status); if (!U_SUCCESS(status)) - throw ERROR; + throw uno::RuntimeException(); icuBI->aBreakIterator->setText(icuBI->ut, status); if (!U_SUCCESS(status)) - throw ERROR; + throw uno::RuntimeException(); icuBI->aICUText = rText; } -- cgit