diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-10 10:52:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-10 13:51:00 +0100 |
commit | 2d5894cc9b2374db9b5d2335db2d3566513fe062 (patch) | |
tree | 59caf2d3ee13f259f68767b4cda058c70d99beb8 /comphelper | |
parent | reduce noise in exceptionToStringImpl (diff) | |
download | core-2d5894cc9b2374db9b5d2335db2d3566513fe062.tar.gz core-2d5894cc9b2374db9b5d2335db2d3566513fe062.zip |
avoid unnecessary intermediate buffer
and make it more obvious that we are doing recursive stuff here
Change-Id: I00209e0123eaacb015484949700ea0c983278fbb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159285
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/diagnose_ex.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/comphelper/source/misc/diagnose_ex.cxx b/comphelper/source/misc/diagnose_ex.cxx index ec00bd0e1436..487f98b637a0 100644 --- a/comphelper/source/misc/diagnose_ex.cxx +++ b/comphelper/source/misc/diagnose_ex.cxx @@ -117,7 +117,7 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & if ( caught >>= specialized ) { sMessage.append("\n wrapped: "); - sMessage.append(exceptionToString(specialized.ErrorDetails)); + exceptionToStringImpl(sMessage, specialized.ErrorDetails); } } { @@ -125,7 +125,7 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & if ( caught >>= specialized ) { sMessage.append("\n wrapped: "); - sMessage.append(exceptionToString(specialized.BackendException)); + exceptionToStringImpl(sMessage, specialized.BackendException); } } { @@ -141,7 +141,7 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & if ( caught >>= specialized ) { sMessage.append("\n wrapped: "); - sMessage.append(exceptionToString(specialized.Cause)); + exceptionToStringImpl(sMessage, specialized.Cause); } } { @@ -173,7 +173,7 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & if ( caught >>= specialized ) { sMessage.append("\n wrapped: "); - sMessage.append(exceptionToString(specialized.TargetException)); + exceptionToStringImpl(sMessage, specialized.TargetException); } } { @@ -181,7 +181,7 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & if ( caught >>= specialized ) { sMessage.append("\n wrapped: "); - sMessage.append(exceptionToString(specialized.TargetException)); + exceptionToStringImpl(sMessage, specialized.TargetException); } } { @@ -255,7 +255,7 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & sMessage.append(" ErrorCode: "); sMessage.append(specialized.ErrorCode); sMessage.append("\n wrapped: "); - sMessage.append(exceptionToString(specialized.NextException)); + exceptionToStringImpl(sMessage, specialized.NextException); } } { @@ -279,7 +279,7 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & if ( caught >>= specialized ) { sMessage.append("\n Reason: "); - sMessage.append(exceptionToString( specialized.Reason )); + exceptionToStringImpl( sMessage, specialized.Reason ); } } { @@ -335,7 +335,7 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & if ( caught >>= specialized ) { sMessage.append("\n wrapped: "); - sMessage.append(exceptionToString( specialized.WrappedException )); + exceptionToStringImpl( sMessage, specialized.WrappedException ); } } { |