diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 17:44:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-27 08:55:56 +0100 |
commit | 7af733d9ef65fddd12ef5fae82808ba2f7f608df (patch) | |
tree | 360afc7f8c5b7963730885255f631c9896f683b4 /unotools | |
parent | 05f5c4d4d6addf5321a40595f598e55dce376f6f (diff) |
tweak assert so comment appears in abort message
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/ucbhelper.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index 594f8ae38898..b0254ed8950c 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -99,7 +99,7 @@ std::vector<OUString> getContents(OUString const & url) { } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); @@ -133,7 +133,7 @@ bool utl::UCBContentHelper::IsDocument(OUString const & url) { } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); @@ -154,7 +154,7 @@ css::uno::Any utl::UCBContentHelper::GetProperty( } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); @@ -173,7 +173,7 @@ bool utl::UCBContentHelper::IsFolder(OUString const & url) { } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); @@ -195,7 +195,7 @@ bool utl::UCBContentHelper::GetTitle( } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); @@ -217,7 +217,7 @@ bool utl::UCBContentHelper::Kill(OUString const & url) { } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); @@ -274,7 +274,7 @@ bool utl::UCBContentHelper::MakeFolder( } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); @@ -306,7 +306,7 @@ sal_Int64 utl::UCBContentHelper::GetSize(OUString const & url) { } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); @@ -335,7 +335,7 @@ bool utl::UCBContentHelper::IsYounger( } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); @@ -425,7 +425,7 @@ bool utl::UCBContentHelper::IsSubPath( } catch (css::uno::RuntimeException const &) { throw; } catch (css::ucb::CommandAbortedException const &) { - assert(false); // this cannot happen + assert(false && "this cannot happen"); throw; } catch (css::uno::Exception const &) { css::uno::Any e(cppu::getCaughtException()); |