On 09/23/2015 07:39 AM, Takeshi Abe wrote:
commit 5ca4acf877834c51d896268cf3dd390903b2248b
Author: Takeshi Abe <tabe@fixedpoint.jp>
Date: Wed Sep 23 06:03:55 2015 +0900
starmath: Prefix members of SmErrorDesc
Change-Id: I4910561e3671f546f2e36344016e2b50fd2a70eb
Reviewed-on: https://gerrit.libreoffice.org/18788
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
diff --git a/starmath/inc/error.hxx b/starmath/inc/error.hxx
index 7794a4a..99a2245 100644
--- a/starmath/inc/error.hxx
+++ b/starmath/inc/error.hxx
@@ -41,9 +41,9 @@ enum SmParseError
struct SmErrorDesc
{
- SmParseError Type;
- SmNode *pNode;
- OUString Text;
+ SmParseError m_eType;
+ SmNode *m_pNode;
+ OUString m_aText;
};
#endif
Just a small remark: With "plain" structs that only contain (public,
non-static) member variables and no member functions, it often makes
sense to not decorate the member variable names.
As there are no member functions, there is never any ambiguity whether
use of a name denotes a member or local variable, and accessing the
member variables "from the outside" typically reads more natural as
desc->pNode
than as
desc->m_pNode
Context
- Re: [Libreoffice-commits] core.git: starmath: Prefix members of SmErrorDesc · Stephan Bergmann
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.