On Oct 31, 2010, at 10:40 PM, Norbert Thiebaud wrote:
On Sun, Oct 31, 2010 at 11:44 PM, Joseph Powers <jpowers27@cox.net> wrote:
[...]
The defaults for the classes where defined in the header (good); however,
they used generic names like DEFAULT_VALUE, FREESPACE, … (bad). I went ahead
and renamed them by prefixing CLASSNAME_ to the start of them. Someone
already found this issue since I found some #undefs before #defines so the
values could be changed.
Is there any reason why you didn't apply the same rule for
DEFAULT_BUTTONLABEL (in progessmonitor.hxx) ?
UnoControls/source/controls/progressmonitor.cxx: m_xButton->setLabel (
OUString::createFromAscii( DEFAULT_BUTTONLABEL
UnoControls/source/inc/progressmonitor.hxx:#define DEFAULT_BUTTONLABEL
Are the only two reference in the entire project to it. I guess I was a little lazy towards the
end...
I know of now reason it couldn't be changed.
[...]
Joe P.
PS: I left the CreateFromASCII() work to the other team. I will note that
anything CreateFromASCII( ALLUPPERCASE ) is a constant and can be optimize
(check the header file of the same name).
PS: Patch released under LGPL 3+
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Joe P.
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.