Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Fri, Dec 31, 2010 at 03:04:29PM +0100, Julien Nabet wrote:
Hello,

Here is a new patch for cppcheck cleaning in svx
Compiling was ok

I have no more this pb :
[./svdotxln.cxx:67]: (style) The class 'ImpSdrObjTextLink' does not
have a constructor.

Julien
(LGPLv3+ / MPL)

commit 2441e55a06e314cf1876bee1809c7846f260087a
Author: Julien Nabet <serval2412@yahoo.fr>
Date:   Fri Dec 31 14:59:47 2010 +0100

    cppcheck cleaning

diff --git a/svx/source/accessibility/AccessibleShape.cxx 
b/svx/source/accessibility/AccessibleShape.cxx
index 1b2577a..8f7fddf 100644
--- a/svx/source/accessibility/AccessibleShape.cxx
+++ b/svx/source/accessibility/AccessibleShape.cxx
@@ -513,7 +513,7 @@ awt::Rectangle SAL_CALL AccessibleShape::getBounds (void)
                         aValue >>= aBoundingBox;
                         bFoundBoundRect = true;
                     }
-                    catch (beans::UnknownPropertyException e)
+                    catch (beans::UnknownPropertyException &e)

I changed these from

catch (SomeException& e)

to

catch (SomeException const& e)

and removed the parameter name where it clearly was not used in the
catch block.

D.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.