summaryrefslogtreecommitdiff
path: root/comphelper/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-25 21:31:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-26 18:22:20 +0100
commit5e21a413c788f839a66d9e4c14e745ed18058db8 (patch)
treed4451246461346a425ad6f796e08bf1514cdd942 /comphelper/qa
parent6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff)
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'comphelper/qa')
-rw-r--r--comphelper/qa/string/test_string.cxx54
1 files changed, 27 insertions, 27 deletions
diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx
index f89db16f16ca..611ea04afce1 100644
--- a/comphelper/qa/string/test_string.cxx
+++ b/comphelper/qa/string/test_string.cxx
@@ -91,29 +91,29 @@ class testCollator : public cppu::WeakImplHelper1< i18n::XCollator >
public:
virtual sal_Int32 SAL_CALL compareSubstring(
const OUString& str1, sal_Int32 off1, sal_Int32 len1,
- const OUString& str2, sal_Int32 off2, sal_Int32 len2) throw(uno::RuntimeException)
+ const OUString& str2, sal_Int32 off2, sal_Int32 len2) throw(uno::RuntimeException, std::exception)
{
return str1.copy(off1, len1).compareTo(str2.copy(off2, len2));
}
virtual sal_Int32 SAL_CALL compareString(
const OUString& str1,
- const OUString& str2) throw(uno::RuntimeException)
+ const OUString& str2) throw(uno::RuntimeException, std::exception)
{
return str1.compareTo(str2);
}
virtual sal_Int32 SAL_CALL loadDefaultCollator(const lang::Locale&, sal_Int32)
- throw(uno::RuntimeException) {return 0;}
+ throw(uno::RuntimeException, std::exception) {return 0;}
virtual sal_Int32 SAL_CALL loadCollatorAlgorithm(const OUString&,
- const lang::Locale&, sal_Int32) throw(uno::RuntimeException) {return 0;}
+ const lang::Locale&, sal_Int32) throw(uno::RuntimeException, std::exception) {return 0;}
virtual void SAL_CALL loadCollatorAlgorithmWithEndUserOption(const OUString&,
- const lang::Locale&, const uno::Sequence< sal_Int32 >&) throw(uno::RuntimeException) {}
+ const lang::Locale&, const uno::Sequence< sal_Int32 >&) throw(uno::RuntimeException, std::exception) {}
virtual uno::Sequence< OUString > SAL_CALL listCollatorAlgorithms(const lang::Locale&)
- throw(uno::RuntimeException)
+ throw(uno::RuntimeException, std::exception)
{
return uno::Sequence< OUString >();
}
virtual uno::Sequence< sal_Int32 > SAL_CALL listCollatorOptions(const OUString&)
- throw(uno::RuntimeException)
+ throw(uno::RuntimeException, std::exception)
{
return uno::Sequence< sal_Int32 >();
}
@@ -126,63 +126,63 @@ class testBreakIterator : public cppu::WeakImplHelper1< i18n::XBreakIterator >
public:
virtual sal_Int32 SAL_CALL nextCharacters( const OUString&, sal_Int32,
const lang::Locale&, sal_Int16, sal_Int32, sal_Int32& )
- throw(uno::RuntimeException) {return -1;}
+ throw(uno::RuntimeException, std::exception) {return -1;}
virtual sal_Int32 SAL_CALL previousCharacters( const OUString&, sal_Int32,
const lang::Locale&, sal_Int16, sal_Int32, sal_Int32& )
- throw(uno::RuntimeException) {return -1;}
+ throw(uno::RuntimeException, std::exception) {return -1;}
virtual i18n::Boundary SAL_CALL previousWord( const OUString&, sal_Int32,
- const lang::Locale&, sal_Int16) throw(uno::RuntimeException)
+ const lang::Locale&, sal_Int16) throw(uno::RuntimeException, std::exception)
{ return i18n::Boundary(); }
virtual i18n::Boundary SAL_CALL nextWord( const OUString&, sal_Int32,
- const lang::Locale&, sal_Int16) throw(uno::RuntimeException)
+ const lang::Locale&, sal_Int16) throw(uno::RuntimeException, std::exception)
{ return i18n::Boundary(); }
virtual i18n::Boundary SAL_CALL getWordBoundary( const OUString&, sal_Int32,
const lang::Locale&, sal_Int16, sal_Bool )
- throw(uno::RuntimeException)
+ throw(uno::RuntimeException, std::exception)
{ return i18n::Boundary(); }
virtual sal_Bool SAL_CALL isBeginWord( const OUString&, sal_Int32,
- const lang::Locale&, sal_Int16 ) throw(uno::RuntimeException)
+ const lang::Locale&, sal_Int16 ) throw(uno::RuntimeException, std::exception)
{ return false; }
virtual sal_Bool SAL_CALL isEndWord( const OUString&, sal_Int32,
- const lang::Locale& , sal_Int16 ) throw(uno::RuntimeException)
+ const lang::Locale& , sal_Int16 ) throw(uno::RuntimeException, std::exception)
{ return false; }
virtual sal_Int16 SAL_CALL getWordType( const OUString&, sal_Int32,
- const lang::Locale& ) throw(uno::RuntimeException)
+ const lang::Locale& ) throw(uno::RuntimeException, std::exception)
{ return 0; }
virtual sal_Int32 SAL_CALL beginOfSentence( const OUString&, sal_Int32,
- const lang::Locale& ) throw(uno::RuntimeException)
+ const lang::Locale& ) throw(uno::RuntimeException, std::exception)
{ return 0; }
virtual sal_Int32 SAL_CALL endOfSentence( const OUString& rText, sal_Int32,
- const lang::Locale& ) throw(uno::RuntimeException)
+ const lang::Locale& ) throw(uno::RuntimeException, std::exception)
{ return rText.getLength(); }
virtual i18n::LineBreakResults SAL_CALL getLineBreak( const OUString&, sal_Int32,
const lang::Locale&, sal_Int32,
const i18n::LineBreakHyphenationOptions&,
const i18n::LineBreakUserOptions&)
- throw(uno::RuntimeException)
+ throw(uno::RuntimeException, std::exception)
{
return i18n::LineBreakResults();
}
virtual sal_Int16 SAL_CALL getScriptType( const OUString&, sal_Int32 )
- throw(uno::RuntimeException) { return -1; }
+ throw(uno::RuntimeException, std::exception) { return -1; }
virtual sal_Int32 SAL_CALL beginOfScript( const OUString&, sal_Int32,
- sal_Int16 ) throw(uno::RuntimeException) { return -1; }
+ sal_Int16 ) throw(uno::RuntimeException, std::exception) { return -1; }
virtual sal_Int32 SAL_CALL endOfScript( const OUString&, sal_Int32,
- sal_Int16 ) throw(uno::RuntimeException) { return -1; }
+ sal_Int16 ) throw(uno::RuntimeException, std::exception) { return -1; }
virtual sal_Int32 SAL_CALL previousScript( const OUString&, sal_Int32,
- sal_Int16 ) throw(uno::RuntimeException) { return -1; }
+ sal_Int16 ) throw(uno::RuntimeException, std::exception) { return -1; }
virtual sal_Int32 SAL_CALL nextScript( const OUString&, sal_Int32,
- sal_Int16 ) throw(uno::RuntimeException) { return -1; }
+ sal_Int16 ) throw(uno::RuntimeException, std::exception) { return -1; }
virtual sal_Int32 SAL_CALL beginOfCharBlock( const OUString&, sal_Int32,
- const lang::Locale&, sal_Int16 ) throw(uno::RuntimeException) { return -1; }
+ const lang::Locale&, sal_Int16 ) throw(uno::RuntimeException, std::exception) { return -1; }
virtual sal_Int32 SAL_CALL endOfCharBlock( const OUString& rText, sal_Int32 nStartPos,
- const lang::Locale&, sal_Int16 CharType ) throw(uno::RuntimeException)
+ const lang::Locale&, sal_Int16 CharType ) throw(uno::RuntimeException, std::exception)
{
const sal_Unicode *pStr = rText.getStr()+nStartPos;
for (sal_Int32 nI = nStartPos; nI < rText.getLength(); ++nI)
@@ -196,9 +196,9 @@ public:
return -1;
}
virtual sal_Int32 SAL_CALL previousCharBlock( const OUString&, sal_Int32,
- const lang::Locale&, sal_Int16 ) throw(uno::RuntimeException) { return -1; }
+ const lang::Locale&, sal_Int16 ) throw(uno::RuntimeException, std::exception) { return -1; }
virtual sal_Int32 SAL_CALL nextCharBlock( const OUString& rText, sal_Int32 nStartPos,
- const lang::Locale&, sal_Int16 CharType ) throw(uno::RuntimeException)
+ const lang::Locale&, sal_Int16 CharType ) throw(uno::RuntimeException, std::exception)
{
const sal_Unicode *pStr = rText.getStr()+nStartPos;
for (sal_Int32 nI = nStartPos; nI < rText.getLength(); ++nI)