Re: [Libreoffice] [PUSHED] inefficient emptiness check

2011-04-26 Thread Kayo Hamid
I like it :-) Couldn't remember if you had commit access - so I pushed it for you. I assume you're using a regexp for these, and we might have a complete solution before long ? Thanks, Michael. Hey Michael, thanks for review my patch. I do not have commit access, an

[Libreoffice] [PATCH] inefficient emptiness check

2011-04-23 Thread Kayo Hamid
Sending for review. Great weekend for everyone. revol_From 8586c03973534c27c6b3fee0ed6dc57125438794 Mon Sep 17 00:00:00 2001 From: Kayo Hamid Date: Fri, 22 Apr 2011 23:40:55 -0400 Subject: [PATCH] [cppcheck] inefficient emptiness check --- extensions/source/bibliography/general.cxx

Re: [Libreoffice] [PATCH][PUSHED] cppcheck variableScope

2011-04-22 Thread Kayo Hamid
Many thanks for the patch! I just pushed it. For the next patches it would be great if you could use git format-patch to generate the patches from the commits in the git repos. That would save us quite some work picking up the email and commit message. Regards, understood, thanks to review

[Libreoffice] cppcheck inefficient checking for emptiness

2011-04-19 Thread Kayo Hamid
From cppcheck: Using .empty() instead of .size() can be faster. .size() can take linear time but .empty() is guaranteed to take constant time Sending for review. revol_diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx b/basegfx/source/polygon/b2dpolypolygoncutter.cxx

[Libreoffice] [PATCH] cppcheck variableScope

2011-04-19 Thread Kayo Hamid
Another path for fixes some cppcheck warnings, sending for review. revol_diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index eff1a1c..8252d0c 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -3548,11 +3548,11 @@ sal_Bool SvNumberfo

[Libreoffice] [PATH] prefer prefix ++/-- operators

2011-04-18 Thread Kayo Hamid
Continuing the journey of cleaning cppcheck. ps: http://lists.freedesktop.org/archives/libreoffice/2011-April/010562.html <- I sent this path Friday, and how is common the community stop on weekend, I put this link so it does not end up losing revol_ cppcheck.prefix++.diff Description: Bina

Re: [Libreoffice] [PATCH] fixes for some cppcheck warnings

2011-04-15 Thread Kayo Hamid
On Fri, 15 Apr 2011 16:25:32 -0300, Kayo Hamid wrote: Just variableScope, sending for review. Sometimes it happens ;-) patch annexed revol_diff --git a/vcl/os2/source/app/printf.c b/vcl/os2/source/app/printf.c index 06e75b6..9c65147 100644 --- a/vcl/os2/source/app/printf.c +++ b/vcl/os2

[Libreoffice] [PATCH] fixes for some cppcheck warnings

2011-04-15 Thread Kayo Hamid
Just variableScope, sending for review. Question: until now my patches are just code changes, nothing adding some extra function, i really need to tell that my work is under LGPLv3+/MPL? If so, they are. revol_ ___ LibreOffice mailing list LibreOffi

[Libreoffice] [PATCH] sal_{Bool,True,False} to bool, true, false.

2011-04-13 Thread Kayo Hamid
Hello, I asked at #libreoffice-dev if we have to see some special condition to change sal_Bool to bool and so on, unanswered. Sending for review.diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 9305e18..8420ebe 100644 --- a/svtools/source/control/ctrlbox

[Libreoffice] warning-free question

2011-03-31 Thread Kayo Hamid
We have a lot of warnings from things that are not from LibreOffice, what do to with that? Fix it, create a patch and put it with us forever and keep updating it? revol_ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freed

Re: [Libreoffice] Problem with build environment: Gtk-linkage error

2011-03-28 Thread Kayo Hamid
Hey, No I just installed the rpm libreoffice-bootstrap package with the following description: "libreoffice-bootstrap - LibreOffice Build Bootstrap This packages provides the basic tools and framework for building LibreOffice using separate source packages." I did not install the source packa

Re: [Libreoffice] Problem with build environment: Gtk-linkage error

2011-03-28 Thread Kayo Hamid
Hey I'm on a vanilla Opensuse 11.4. I have the required dependencies me too, with KDE4 installed gtk, gtk-devel and so on. I have also the libreoffice-bootstrap package installed but I don't use it directly (should I?) sorry but that is not clear to me, you did zypper si -d OpenOffice_org

[Libreoffice] Bugzilla and EasyHack marks.

2011-03-28 Thread Kayo Hamid
Hey, we have one inconsistency with EasyHack marks at Bugzilla. Some are EasyHack and others [EasyHack], the result is: 13 bugs - https://bugs.freedesktop.org/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&product=LibreOffice&content=EasyHacks (link from wiki/Develo

[Libreoffice] [PATCH] cppcheck variableScope cleanliness

2011-03-25 Thread Kayo Hamid
This patch removes some variableScope warnings from http://libreoffice.boldandbusted.com, sending for review. revol_ diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 052a930..c0cd48f 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwrit

Re: [Libreoffice] Windows compiling

2011-03-23 Thread Kayo Hamid
Hey, you can begin here http://wiki.documentfoundation.org/Development/Windows_Build_Dependencies revol_ On Thu, 24 Mar 2011 00:10:44 +0200, Albert Zaharovits wrote: Hi,     I am interesting in participating to your project, but in the past few days I've been trying to recover my Ubuntu, but

Re: [Libreoffice] [PATCH] [PUSHING] translate german comments in /sc/inc

2011-03-11 Thread Kayo Hamid
just to remember: some patchs translating german comments to english are not pushed, 0044 is one and we have others inside this list of patchs. revol_ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/

Re: [Libreoffice] [PATCH] [PUSHING] translate german comments in /sc/inc

2011-03-10 Thread Kayo Hamid
Hey, i took a look and i think that you can push -> {0043,0044,0048}. On Thu, 10 Mar 2011 22:02:57 +0100, Christina Roßmanith wrote: Hi, I've pushed patch 1-3. Patch 4 only removes structuring "//---" lines. I'm not sure if this is wanted. Maybe someone of the experts can

[Libreoffice] Easy Hacks wiki page feature

2011-03-07 Thread Kayo Hamid
How about add some extra information like '''Working on it''': {name|nick|or_wiki_page} at EasyHack page? With this we can see what needs more people and what not. revol_ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.fr

[Libreoffice] Help here, I think I'm blinded

2011-02-28 Thread Kayo Hamid
Guys I have something that I see a lot and do not know way someone will use it: //code static WinSalMenuItem* ImplGetSalMenuItem( HMENU hMenu, UINT nPos, BOOL bByPosition=TRUE ) { DWORD err=0; MENUITEMINFOW mi; memset(&mi, 0, sizeof(mi)); mi.cbSize = sizeof( mi ); mi.fMask

[Libreoffice] ure cppcheck, variableScope.

2011-02-06 Thread Kayo Hamid
Hi guys, it's minor change, sending for review. revol_ diff --git a/sal/osl/w32/diagnose.c b/sal/osl/w32/diagnose.c index 1990164..fb97a91 100644 --- a/sal/osl/w32/diagnose.c +++ b/sal/osl/w32/diagnose.c @@ -71,7 +71,6 @@ void SAL_CALL osl_breakDebug(void) void SAL_CALL osl_trace(const sal_Char*

Re: [Libreoffice] [PATCH] some changes for better performance, writer.

2011-01-10 Thread Kayo Hamid
Hey, Anyway, do not let me discourage you :) May I suggest that you look at http://wiki.documentfoundation.org/Development/Easy_Hacks ? There should be enough interesting things to try there. D. replying it helps me, I know a bit more now about what I tried to do and it's a good feeling, of cou

[Libreoffice] [PATCH] cppcheck changes at writer

2011-01-09 Thread Kayo Hamid
Sending for review. revol_ diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index a7168c2..f93fe95 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -387,6 +387,7 @@ SwDoc::InsertSwSection(SwPaM const& rRange, SwSectionDat

[Libreoffice] libreoffice.org

2011-01-09 Thread Kayo Hamid
Hello, I have seen a new design at libreoffice.org and it's looks very good, congrats! But it seems miss set a blank background. revol_ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreof

[Libreoffice] [PATCH] variableScope cppcheck at writer

2011-01-08 Thread Kayo Hamid
Sending for review. revol_ diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index 1436f6e..73ad556 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -1246,7 +1246,6 @@ void SwDoc::CalculatePagesForPrinting( USHORT nFirstPageNo = 0; USHORT

Re: [Libreoffice] [PATCH] some changes for better performance, writer.

2011-01-08 Thread Kayo Hamid
On 08/01/2011 17:00, Norbert Thiebaud wrote: I' confused: -sal_Int32 nCount = xAcc->getAccessibleChildCount(); - -for( sal_Int32 i=0; i< nCount; i++ ) +const sal_Int32 nCount = xAcc->getAccessibleChildCount(); +sal_Int32 i = 0; + +while(i< nCount) { -if(

Re: [Libreoffice] [PATCH] some changes for better performance, writer.

2011-01-08 Thread Kayo Hamid
On 10/01/2006 20:09, Kayo Hamid wrote: Please, someone can review this? Thkz. revol_ I forgot to change the headers, sorry. This patch covers the two patchs that I sent early. > http://lists.freedesktop.org/archives/libreoffice/2011-January/005570.html > http://lists.freedeskt

[Libreoffice] [PATCH] some changes for better performance, writer.

2011-01-08 Thread Kayo Hamid
Sending for review. revol_ diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx index e7b8e8b..c382486 100644 --- a/sw/source/core/access/accdoc.cxx +++ b/sw/source/core/access/accdoc.cxx @@ -95,7 +95,7 @@ void SwAccessibleDocumentBase::SetVisArea() } } -void S

[Libreoffice] [PATCH] some changes for better performance, writer.

2011-01-08 Thread Kayo Hamid
Please, someone can review this? Thkz. revol_ diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx index dbd1b51..2479c5c 100644 --- a/sw/source/core/access/acccell.cxx +++ b/sw/source/core/access/acccell.cxx @@ -121,7 +121,7 @@ SwAccessibleCell::SwAccessibleCell( S

[Libreoffice] [PATCH] cppcheck at writer, performance.

2010-12-30 Thread Kayo Hamid
So, it's a small patch that I send for review because I do not know if it's ok to do what the cppcheck says to do. In this case, he says that for non-primitive types we can do ++test instead test++. My fear is if in the code really need to be test++, understand? revol_ diff --git a/sw/source/

[Libreoffice] [Windows Build] Oh man, please, help-me.

2010-12-18 Thread Kayo Hamid
So, hello guys, i'm trying to build LO at Windows and i know that anyone of us don't like to see it, but i really, --really--, needs help to do it because i can't, today, do it alone. The facts:  - LO Build Page not solve the problem, she says 'hey, my FRIEND, you only need to download your li

[Libreoffice] [PATCH] Clean code at impress

2010-12-05 Thread Kayo Hamid
Sending for review, cover sd/slideshow/* revol_ cleancode-impress.slideshow.diff Description: Binary data ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: [Libreoffice] (no subject) -> is one PATCH to clean code at impress.

2010-12-04 Thread Kayo Hamid
Sorry, some times it happens. --- Em dom, 5/12/10, Kayo Hamid escreveu: De: Kayo Hamid Assunto: [Libreoffice] (no subject) Para: libreoffice@lists.freedesktop.org Data: Domingo, 5 de Dezembro de 2010, 1:32 Covering sd/source/{filter,helper}. Someone can look if I build the patch in a correct

[Libreoffice] [PATCH] Clean code at impress

2010-12-02 Thread Kayo Hamid
Covering impress/animations/source/animcore/ and impress/sd/source/core/*, sending for review. Thanks, revol_. cleancode-impress.two.dirs.diff Description: Binary data ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://list

Re: [Libreoffice] [PUSHED] Last patch to clean code at writer [source/ui]

2010-11-30 Thread Kayo Hamid
thanks for your review. revol_. --- Em ter, 30/11/10, David Tardon escreveu: De: David Tardon Assunto: Re: [Libreoffice] [PUSHED] Last patch to clean code at writer [source/ui] Para: libreoffice@lists.freedesktop.org Data: Terça-feira, 30 de Novembro de 2010, 15:47 On Tue, Nov 30, 2010 at 04

[Libreoffice] [PATCH] Last patch to clean code at writer [source/ui]

2010-11-29 Thread Kayo Hamid
So, I'm happy, this patch finish my work to clean code around writer, everything inside sw. Sending for review (large patch). revol_ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libr

Re: [Libreoffice] [PUSHED] Clean code at writer [source/ui]

2010-11-25 Thread Kayo Hamid
I can't see the commit at cgit, where is? I want to see the changes to improve my skills, see the changes. What wrong I'm doing? Better, what are wrong remove? revol_ Pushed with some changes. D. ___ LibreOffice mailing list LibreOffice@lists

[Libreoffice] [PATCH] Clean code at writer [source/ui]

2010-11-24 Thread Kayo Hamid
Covering source/ui/{app,cctrl,chrdlg,config,dbui,dialog,dochdll,docvw,envelp}, sending for review. Curiously 'ui' is the most clean I have seen. revol_ cleancode-writer.source.ui.initial.diff Description: Binary data ___ LibreOffice mailing lis

Re: [Libreoffice] [PUSHED] Re: [PATCH] Clean code at writer [source/filter/{ascii, basflt, html}]

2010-11-22 Thread Kayo Hamid
Thanks for your review, I'll take into account in the next patch. revol_ I kept stuff like // 0.01mm = 0.57twip as that's a useful comment IMO and I kept stuff like void SwHTMLParser::EndNumBulListItem( int nToken, sal_Bool bSetColl, -                                      sal_Bool /*bLastPara

[Libreoffice] Clean code at writer, last patch.

2010-11-19 Thread Kayo Hamid
It covers source/core/{except, fields, frmedt, graphic, objectpositioning, ole, para, sw3io}, sending for review. thanks. revol_ cleancode-writer.source.core.finish.diff Description: Binary data ___ LibreOffice mailing list LibreOffice@lists.fr

[Libreoffice] More clean code at writer [source/core/{docnode, draw, edit}]

2010-11-18 Thread Kayo Hamid
Hello, sending this for review. I think that cleaniness is better than the previous. revol_ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: [Libreoffice] [PUSHED] Clean code at writer (core/{access, attr, bastyp, crsr, doc})

2010-11-18 Thread Kayo Hamid
Ok, thanks for your review, I'll remember them the next cleanup revol_ I pushed it with several changes: * reverted several comments that remain valid after the removals * reverted one removed vim modeline * removed issue numbers only related to the removed code. Nonexistent   code doesn't need com

[Libreoffice] Clean code at writer [source/core/layout]

2010-11-15 Thread Kayo Hamid
Hello, please can someone review this? I do not known exactly what I need to remove or not, so I'll known a bit more after someone reviewing it. So I'll be able to clean better and at once. cleancode-writer.source.core.layout.diff Description: Binary data ___

[Libreoffice] Build LO at Windows

2010-10-11 Thread Kayo Hamid
i'm trying to build libreoffice, at windows, but i do not known what i need. i'm following this page, http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Windows, and I have in my files the build, base, impress, writer and calc repos. cygwin + dependencies, perl +

[Libreoffice] [PATCH] Things by cppcheck - [base] repo

2010-10-10 Thread Kayo Hamid
I'm sending this patch for review because i do not know if these changes are ok. The patch covers variables assigned but not used and scope of variables inside if/else/loops. revol_ patch.cppcheck.base.diff Description: Binary data ___ LibreOff

[Libreoffice] SAL_N_ELEMENTS, where?

2010-10-10 Thread Kayo Hamid
There are other places than writer, base, calc and impress repo? I'm not familiar with these many git repositories. revol_ ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: [Libreoffice] [PATCH] SAL_N_ELEMENTS for writer, impress and calc

2010-10-09 Thread Kayo Hamid
Hi Norbert, thank you. Can you explain for me where is this definition (SAL_N_ELEMENTS) that all theses sources share in common? My knowledge in C++ are few. New patchs attached.Hi revol_ Thanks for the patch. One remark. You want to use the macro SAL_N_ELEMENTS, not define your own ELEMENTS