From 7af733d9ef65fddd12ef5fae82808ba2f7f608df Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 26 Jun 2014 17:44:58 +0100 Subject: tweak assert so comment appears in abort message Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d --- unotools/source/ucbhelper/ucbhelper.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'unotools') 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 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()); -- cgit