summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-04-02 13:15:16 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-04-02 14:21:19 +0200
commit9a063f939b7ddd4fe177aecc3e2c21b4cd2346d1 (patch)
tree2fbf1a0c601817b66886e8ecac6f5ebab31b5bf6 /i18npool
parent381c5bf1ca968424585f679da8382ae3f8d6ac66 (diff)
i18npool: cleanup macros
This is the last one :) Change-Id: If3e546648a42bcc17e57fb4965f7cdc063243825
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/breakiterator/breakiterator_unicode.cxx12
1 files 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;
}