Re: make check problem in libtest_smoketest building master

2012-04-11 Thread Lubos Lunak
like the dynamic loader on your system does not support dlsym to > report a symbol not exported by the lib itself, but only indirectly by a > lib the first lib links against. Note that you can check what the dynamic loader does by doing LD_DEBUG=symbols command (see LD_DEBUG=help /bin/tr

Re: 'make check' with Windows/MSVC build?

2012-04-11 Thread Lubos Lunak
dified for Windows, so that it does not create symlinks, but instead it copies a file if the one in solver/ is newer. That would still require 'make dev-install' after every change, but I expect it should be reasonably fast, quite convenient to use, and probably the be

'make check' with Windows/MSVC build?

2012-04-10 Thread Lubos Lunak
or is there a bigger problem? [1] http://pastebin.com/S06cqSX6 [2] http://tinderbox.libreoffice.org/cgi-bin/gunzip.cgi?tree=MASTER&full-log=1334074224.6419 -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@li

[PUSHED] Re: [PATCH] fdo#46390: EasyHack: Move VERBOSE to OSL_DEBUG_LEVEL (part 3)

2012-04-10 Thread Lubos Lunak
on't know if the debug-draw is still usefull this > way. I don't understand why this was done. I don't either, but your patch looks good to me, so I've pushed it, thank you. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mai

Re: [PATCH] 2/2 List cleanup in SD

2012-04-10 Thread Lubos Lunak
mp;rEntries) const; Why is that? Changing the return value to a reference argument makes the API worse and it seems like an unnecessary change to me. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.fr

Re: [Libreoffice-commits] .: 11 commits - dbaccess/CppunitTest_dbaccess_macros_test.mk extensions/CppunitTest_extensions_test_update.mk filter/CppunitTest_filter_tga_test.mk filter/CppunitTest_filter_

2012-04-08 Thread Lubos Lunak
mails from the Clang tinderbox, where the watchdog eventually kills it, so this is just to point you to the reason for it. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

[PUSHED-3-5] Re: [REVIEW:3-5] "Redundant assignment" in oox

2012-04-08 Thread Lubos Lunak
014d35597a37c3220c261e35ae to just > add a break at the end of line 251. > > could it be useful to push this on 3.5 branch this trivial fix ? Pushed. Note that it is a good practice to always end each 'case' with break (or add /*fallthrough intended*/ ) so that the problem

Re: Cppcheck reports "Same expression on both sides of '|'" on basctl module

2012-04-08 Thread Lubos Lunak
t copied it from those few lines above, where there is the same duplication. > I've got not idea, if we can just remove WB_DOCKABLE or if it should be > replaced by another constant. > > Any advice ? I think you can simply remove one of the duplicates. -- Lubos Lunak l.lu...

Re: Cppcheck reports "Same expression on both sides" in writerfilter module

2012-04-08 Thread Lubos Lunak
So because of the 2 things noticed, I think there should be both and so > just replace "1" by "2" and have "SERVICE_NAME2" as second operand. > > Perhaps I'm wrong or missed something, any idea ? No, your analysis look

Re: [PUSHED] Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator

2012-04-08 Thread Lubos Lunak
ot > that large, so I attached it to this mail. Looks ok to me, pushed, thank you. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: RTL_CONSTASCII_(U)STRINGPARAM officially obsolete

2012-04-08 Thread Lubos Lunak
On Friday 06 of April 2012, Lubos Lunak wrote: > I'm aware only of these cases where the explicit > OUString ctor is needed: > > - return statements (because of the gcc bug) > - tool String class (because that one itself is obsolete and uses should be > converted to OUSt

Re: problem with compiling and linking the same file into different libraries

2012-04-08 Thread Lubos Lunak
t does #include . PS: I think you didn't want to include the solenv/gbuild/LinkTarget.mk change in the patch. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: RTL_CONSTASCII_(U)STRINGPARAM officially obsolete

2012-04-06 Thread Lubos Lunak
please tell me. I'm aware only of these cases where the explicit OUString ctor is needed: - return statements (because of the gcc bug) - tool String class (because that one itself is obsolete and uses should be converted to OUString) - when OUString object is really needed, e.g. with t

Incremental bibisect (Re: minutes of ESC call ...)

2012-04-05 Thread Lubos Lunak
inally going to offer my build machine for this if needed (it's got nothing to do during the nights anyway, and more than one rebuild and repack daily probably shouldn't be needed). I have no idea about the storage requirements of this or the time needed for reasonable repacking, but if th

Re: RTL_CONSTASCII_(U)STRINGPARAM officially obsolete

2012-04-05 Thread Lubos Lunak
is undefined if the comparison evaluates to true or false (depends on string literal duplicates merging). Which is why this would be a problem, but compilers warn about this. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: RTL_CONSTASCII_(U)STRINGPARAM officially obsolete

2012-04-05 Thread Lubos Lunak
OUString anyway, and it'd also require that person to actually not test the code. So hopefully very unlikely and IMO not worth the inconvenience. There'd be also the possibility of getting a warning about comparing const char* pointers into the compilers, but

Re: RTL_CONSTASCII_(U)STRINGPARAM officially obsolete

2012-04-05 Thread Lubos Lunak
to have > an overloaded operator== and to force bar.equalsfoo(""). Quite possibly yes :). Why would you want the explicit less convenient way? -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Macro for #ifdef of deprecated stuff (Re: The C-style definitions of SAL_CONST_CAST and SAL_STATIC_CAST)

2012-04-04 Thread Lubos Lunak
ctRegistry_getMutex() gets a warning with Clang that can be cleanly fixed only by breaking binary compatibility). Do we have something for either of these? -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org

Re: [Libreoffice-commits] .: 9 commits - boost/boost_1_44_0-logical-op-parentheses.patch boost/boost_1_44_0-unused-parameters.patch boost/makefile.mk cppcanvas/source framework/source sc/qa sc/source

2012-04-04 Thread Lubos Lunak
inherits from XInterface in 3 different ways, and I wonder what the point of the explicit casts is. I'll go with thinking the casts are pointless historic garbage and try plain call to acquire(), it shouldn't make it worse. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: [PATCH] EasyHack Bug 46610

2012-04-04 Thread Lubos Lunak
On Wednesday 04 of April 2012, Daniel Bankston wrote: > Lubos Lunak wrote: > > It seems to me you are correct. I've added !IsEmpty() check to the if(), > > which should do what the original author wanted. > > I'm still a little worried about that aClip object t

Re: [Libreoffice-commits] .: Branch 'libreoffice-3-5' - solenv/gbuild

2012-04-04 Thread Lubos Lunak
est it and add to 3-5 > > too. > > I assume a7eb227cfcd783ffdccdcec9b56451fb54c26eb6 and > c813c009479db3fab58fc48740ab8f80ceb93a26, but Luboš should know the > details. Yes, but they need 174a1d3c3da7457884a2f79016e8a9375fd5297e fi

Re: The C-style definitions of SAL_CONST_CAST and SAL_STATIC_CAST

2012-04-03 Thread Lubos Lunak
On Tuesday 03 of April 2012, Lubos Lunak wrote: > On Tuesday 03 of April 2012, Michael Meeks wrote: > > On Tue, 2012-04-03 at 17:52 +0200, Lubos Lunak wrote: > > > On Tuesday 03 of April 2012, Tor Lillqvist wrote: > > > > (SAL_REINTERPRET_CAST is not used an

Re: The C-style definitions of SAL_CONST_CAST and SAL_STATIC_CAST

2012-04-03 Thread Lubos Lunak
On Tuesday 03 of April 2012, Michael Meeks wrote: > On Tue, 2012-04-03 at 17:52 +0200, Lubos Lunak wrote: > > On Tuesday 03 of April 2012, Tor Lillqvist wrote: > > > (SAL_REINTERPRET_CAST is not used anywhere, says opengrok, so that can > > > be binned outright.) > &g

RTL_CONSTASCII_(U)STRINGPARAM officially obsolete

2012-04-03 Thread Lubos Lunak
minserter.hxx directly into rtl/ustring.hxx (hopefully I'm right that it won't break anything in practice), so if you now need to know what 'foo' is, just do SAL_DEBUG( "foo is " << foo ); The git commit hook will reject commits with these debug outputs lef

Re: The C-style definitions of SAL_CONST_CAST and SAL_STATIC_CAST

2012-04-03 Thread Lubos Lunak
fix is trivial here, but still). -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

[PUSHED]Re: [PATCH] EasyHack Bug 46610

2012-04-03 Thread Lubos Lunak
On Tuesday 03 of April 2012, Lubos Lunak wrote: > On Tuesday 03 of April 2012, Daniel Bankston [danthedev] wrote: > > Hello, everyone, > > > > I have attached my patches for EasyHack Bug 46610. > > Looks good to me, I only removed the return's at the end of functi

Re: [PATCH] EasyHack Bug 46610

2012-04-03 Thread Lubos Lunak
age should probably be checked by someone more knowledgeable and > experienced than me. Maybe it is nothing, but it is probably worth > checking to be sure. It seems to me you are correct. I've added !IsEmpty() check to the if(), which should do what the o

Re: string / size bits ... #2 ...

2012-04-03 Thread Lubos Lunak
strings (literals, or statically initialized and const > std::string objects), it could put them all together into one instance in > const data section. I doubt any compiler we use treats std::string specially, I'd expect it's a normal class for it just like any other. --

Re: [PATCH] Fix memory errors in SwWW8ImplReader

2012-04-02 Thread Lubos Lunak
based only on valgrind or if you had some documents where the sizes didn't exactly match what the spec says. Miklos has already fixed Read_UL(), but your patch lists more places. Could you check why those places needed the change and make them read the proper sizes according to what the

[PUSHED] Re: [PATCH] Remove unused HTMLMODE_FIRSTLINE

2012-04-02 Thread Lubos Lunak
e, pushed, thank you. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

[PUSHED] Re: [PATCH] Replace List with std:vector

2012-04-02 Thread Lubos Lunak
On Sunday 01 of April 2012, Rafael Dominguez wrote: > 0001-Replace-List-with-std-vector-EPPTHyperlink.patch Looks good, pushed, thank you. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org h

Re: build failure: sc_ucalc.test - cppunittester abort trap (core dumped)

2012-04-02 Thread Lubos Lunak
On Sunday 01 of April 2012, R Skinner wrote: > On 03/31/12 18:49, Lubos Lunak wrote: > > If you use the Clang compiler, then I somehow doubt you'll manage to > > get 3.4.5 working with that. In fact I'm even surprised the link mentions > > 3.5 as usable with C

Re: string / size bits ... #2 ...

2012-04-02 Thread Lubos Lunak
"/" shows things like nodepath = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/")) + nodepath; where the / string instance can be avoided completely. My changes won't do anything about the long-lived / instances though, so there indeed one shared instance may take care of all

[PUSHED] Re: [PATCH][REVIEW] Fix memory leak in SwWW8ImplReader::ReadPlainChars

2012-04-02 Thread Lubos Lunak
htly to avoid the copy in the OUString constructor and pushed, thank you. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: [PATCH] Fix memory errors in SwWW8ImplReader

2012-04-02 Thread Lubos Lunak
WW8AttributeOutput::FormatULSpace(), we apparently do write sprmPFContextualSpacing as 2 bytes, which seems wrong. So could you please explain why you decided to fix the problem this way? -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice maili

Re: Headless for everything in build? (Re: [Libreoffice-commits] .: hwpfilter/CppunitTest_hwpfilter_test_hwpfilter.mk)

2012-04-02 Thread Lubos Lunak
On Thursday 29 of March 2012, Caolán McNamara wrote: > On Thu, 2012-03-29 at 16:56 +0200, Lubos Lunak wrote: > > Is there any need to run UI stuff during build? IOW, can't we simply > > globally force using headless for everything during build? > > Unix has the env S

Re: Exception specifications on functions useless?

2012-04-02 Thread Lubos Lunak
On Tuesday 20 of March 2012, Lubos Lunak wrote: > - C++11 deprecates it and instead introduces a noexcept keyword which > forbids the function to throw anything > > I'm not strongly biased either way, but what we have right now are really > just pretty comments on function

Re: build failure: sc_ucalc.test - cppunittester abort trap (core dumped)

2012-03-31 Thread Lubos Lunak
hen I somehow doubt you'll manage to get 3.4.5 working with that. In fact I'm even surprised the link mentions 3.5 as usable with Clang, since I had to do several fixes in master this month to get LO compile and run with Clang on Linux. -- Lubos Lunak l.lu...@suse.cz

Re: [Libreoffice-commits] .: distro-configs/LibreOfficeMinGW.conf distro-configs/LibreOfficeWin32.conf distro-configs/LibreOfficeWin64.conf

2012-03-30 Thread Lubos Lunak
as disabling the canvas caused the internal cairo to be dragged in by things depending on it. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Make watchdog (Re: Build failure on Windows/MSVC because of embedserv)

2012-03-30 Thread Lubos Lunak
On Wednesday 21 of March 2012, Lubos Lunak wrote: > On Monday 19 of March 2012, Michael Meeks wrote: > > On Mon, 2012-03-19 at 07:33 +0100, Lubos Lunak wrote: > > > Oh, I see. I've already noticed this myself, and that's a good > > > explanation for Voreppe&#x

Re: intermittent flaw in gnumake deps on Win32 ..

2012-03-30 Thread Lubos Lunak
generating broken .d files (although IIRC the problem was generating Windows paths rather than Unix paths). -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Headless for everything in build? (Re: [Libreoffice-commits] .: hwpfilter/CppunitTest_hwpfilter_test_hwpfilter.mk)

2012-03-29 Thread Lubos Lunak
On Thursday 29 of March 2012, Lubos Lunak wrote: > hwpfilter/CppunitTest_hwpfilter_test_hwpfilter.mk |1 + > 1 file changed, 1 insertion(+) > > New commits: > commit 61d6d08667e03271604007fe602063c08e0e8608 > Author: Luboš Luňák > Date: Thu Mar 29 16:52:42 2012 +0200 &

Re: [PUSHED 3.5] Re: [PUSHED] Re: Disabling dependency tracking (Re: [Libreoffice-commits] .: solenv/gbuild)

2012-03-27 Thread Lubos Lunak
On Tuesday 27 of March 2012, Matúš Kukan wrote: > On 26 March 2012 17:31, Lubos Lunak wrote: > > [ build srs ] > > /builds/tinderbox/libo-master/basctl/source/basicide/basicprint.src cpp: > > line 31, Fatal error: Cannot open include file "svx/svxids.hrc"

Re: Windows SDK is not found

2012-03-26 Thread Lubos Lunak
that the SDK must be registered as default with Visual Studio (in the menu: Microsoft Windows SDK 7.1 -> Visual Studio Registration -> Windows SDK Configuration Tool). You can also have a look at configure.in to see what the check actually looks for. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

[PUSHED-3-5] Re: [REVIEW-3-5] fix dependency problem in i18npool

2012-03-26 Thread Lubos Lunak
de777c0cbb4d90c7f6bdcd831bf3 this problem is now visible in > i18npool. I fixed it in master as part of > http://cgit.freedesktop.org/libreoffice/core/commit/?id=15bd35e4f2646ef0bba >0cc24d171989c9e3ac6e4 > > Attached patch is aimed to solve this problem for 3-5 branch. Looks ok t

Re: [PUSHED 3.5] Re: [PUSHED] Re: Disabling dependency tracking (Re: [Libreoffice-commits] .: solenv/gbuild)

2012-03-26 Thread Lubos Lunak
On Monday 26 of March 2012, Norbert Thiebaud wrote: > On Mon, Mar 26, 2012 at 10:43 AM, Lubos Lunak wrote: > >  I have reverted the above commit in 3-5, the 3-5 tinderbox page is red > > enough. > > The commit above only implement no_dep correctly.. it does not force > you

Re: [PUSHED 3.5] Re: [PUSHED] Re: Disabling dependency tracking (Re: [Libreoffice-commits] .: solenv/gbuild)

2012-03-26 Thread Lubos Lunak
77c0cbb4d90c7f6bdcd831bf3 > > > > and updated the @6-fast and @15-Prague Win32 tinderboxes to use that. > > I would not do that so quickly. gbuild does not seem to be ready for > --disable-dependency-tracking. > If you get error in i18npool I have reverted the above commit in

Re: [PUSHED 3.5] Re: [PUSHED] Re: Disabling dependency tracking (Re: [Libreoffice-commits] .: solenv/gbuild)

2012-03-26 Thread Lubos Lunak
opies the .h file needs to be used even with --disable-dependency-tracking (if there's one), or there needs to be an early invoked make target that copies everything that should be copied, or this .h copying idea needs to be dropped. -- Lubos Lunak l.lu...@suse.cz _

Disabling dependency tracking (Re: [Libreoffice-commits] .: solenv/gbuild)

2012-03-23 Thread Lubos Lunak
On Friday 23 of March 2012, Lubos Lunak wrote: > On Thursday 22 of March 2012, Norbert Thiebaud wrote: > > --- a/solenv/gbuild/gbuild.mk > > +++ b/solenv/gbuild/gbuild.mk > > @@ -113,8 +113,12 @@ endif > > > > # for clean, setuplocal and removelocal goals we s

Re: [Libreoffice-commits] .: solenv/gbuild

2012-03-23 Thread Lubos Lunak
gt; gb_FULLDEPS := $(true) > endif Is this the same like should be with --disable-dependency-tracking, except that it seems it does not with gbuild? -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Make watchdog (Re: Build failure on Windows/MSVC because of embedserv)

2012-03-21 Thread Lubos Lunak
On Monday 19 of March 2012, Michael Meeks wrote: > On Mon, 2012-03-19 at 07:33 +0100, Lubos Lunak wrote: > > Oh, I see. I've already noticed this myself, and that's a good > > explanation for Voreppe's (lack of) builds. That's a rather bad bug for > > ti

Exception specifications on functions useless?

2012-03-20 Thread Lubos Lunak
uilds, or we can say we follow the C++11/Boost/etc. trend and not use them, in which case we can have one macro for portable way of saying noexcept and have an EasyHack for removing the other specifications. BTW, it should be also noted that SAL_THROW() expands to nothing with gcc. Op

Re: About Strings

2012-03-20 Thread Lubos Lunak
On Tuesday 20 of March 2012, Caolán McNamara wrote: > On Tue, 2012-03-20 at 15:20 +0100, Lubos Lunak wrote: > > Before I start experimenting with more stuff in OUString that might look > > a bit like operator+= , what exactly is so irritating about operator= or > > operator+

Re: About Strings

2012-03-20 Thread Lubos Lunak
oils this, > > anyway.) > > And the += operator irritates me. Before I start experimenting with more stuff in OUString that might look a bit like operator+= , what exactly is so irritating about operator= or operator+= in OUString and why?

Re: Unused code patches

2012-03-19 Thread Lubos Lunak
methods from that file that no longer exist > in the source. That will not work reliably, unless your process also verifies that they are really unused in all configurations. The list is generated from one configuration and a manual check is needed that each item is in

Re: About Strings

2012-03-19 Thread Lubos Lunak
On Monday 19 of March 2012, Stephan Bergmann wrote: > On 03/19/2012 07:27 AM, Lubos Lunak wrote: > > Or, actually, seeing that _rtl_uString is marked as internal by the > > doxygen doc, it looks like it might be doable even now. Something to add > > to my TODO list for maki

Re: LibreOffice / openIndiana ...

2012-03-19 Thread Lubos Lunak
; > so I guess there is some kind of corruption in the string "pThis" that > is being passed around. The this=0x29 suggests that the string is inside another type that is referenced using a null pointer. Check out the gdb backtrace and search for where an

Re: About Strings

2012-03-19 Thread Lubos Lunak
ra bonus points if the code fits to one line and doesn't look like a madness written by somebody in a maniacal "proper C++(tm)"-induced frenzy.) -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.or

Re: About Strings

2012-03-19 Thread Lubos Lunak
On Monday 19 of March 2012, Noel Grandin wrote: > On 2012-03-19 08:27, Lubos Lunak wrote: > > That said, I myself dislike the buffer class. I doubt its > > preallocation is a significant requirement for good performance > > (especially given it's only 16 characters).

Re: [PATCH] [PUSHED] Windows lcms2 library import fix

2012-03-19 Thread Lubos Lunak
anything there. Hmm, except that this CMS_DLL_BUILD defining is done in MSVC project file, so I assume that's not used for gcc build. I suppose the lcms2 build should add -DCMS_DLL_BUILD to CPPFLAGS when not doing msvc build? -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Build failure on Windows/MSVC because of embedserv

2012-03-18 Thread Lubos Lunak
On Monday 19 of March 2012, Matúš Kukan wrote: > On 18 March 2012 21:03, Lubos Lunak wrote: > >  MSVC/Windows build fails at the very end with an error about emserlo.dll > > missing, probably caused by the recent embedserv conversion to gbuild. As > > this is seem to be buil

Re: About Strings

2012-03-18 Thread Lubos Lunak
OUStringBuffer? If so, is it OK to clone STRING:SearchBackward(...) > > to OUStringBuffer::SearchBackward(...)? No. As said above, if the addition is justified, for consistency it should be modeled after OUString, not String. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Build failure on Windows/MSVC because of embedserv

2012-03-18 Thread Lubos Lunak
27;ve pasted at http://pastebin.ca/2129689 the log for 'make' after first running 'make embedserv.clean' (there's other stuff being needlessly rebuilt for whatever reason). At the end of the log there's also a find command showing that the library has been built, b

Specifying a dependency with build?

2012-03-18 Thread Lubos Lunak
http://tinderbox.libreoffice.org/cgi-bin/gunzip.cgi?tree=MASTER&brief-log=1332055201.31263#14239 -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

[PATCH] Windows lcms2 library import fix

2012-03-17 Thread Lubos Lunak
at touches lcms2 even with a ten-foot pole does this define). Is the attached patch a good way to solve the problem as well? I don't know what the usual idiom of handling this is, so I'd like somebody to check. -- Lubos Lunak l.lu...@suse.cz diff --git a/lcms2/lcms2-windows-export

Re: How does one do "registration of SDK with Visual Studio"?

2012-03-17 Thread Lubos Lunak
"registration of SDK with Visual Studio [2008] seems to > be the answer". How do I do that? in the menu: Microsoft Windows SDK 7.1 -> Visual Studio Registration -> Windows SDK Configuration Tool -- Lubos Lunak l.lu...@suse.cz

Re: build error

2012-03-17 Thread Lubos Lunak
ere have been only master commits from me (heh...), you most probably need to either update or do a clean rebuild (I think I've noticed this one as well and it needed 'make offapi.clean'). -- Lubos Lunak l.lu...@suse.cz ___ L

[REVIEW-3-5] Re: [Libreoffice-commits] .: svx/inc

2012-03-17 Thread Lubos Lunak
On Saturday 17 of March 2012, Lubos Lunak wrote: > svx/inc/svx/sdrpaintwindow.hxx |3 +++ > 1 file changed, 3 insertions(+) > > New commits: > commit 9865a0d430da8948210a2cd9d4bae08e6023f4c8 > Author: Luboš Luňák > Date: Sat Mar 17 08:39:26 2012 +0100 > >

Re: String literals, ASCII vs UTF-8

2012-03-13 Thread Lubos Lunak
compiler and switched to it, and it seems one of its nice features should be the ability to analyze and rewrite code, in which case a change like this or e.g. the 'str.length() == 0' -> 'str.isEmpty()' change could be done reliably by writting some clang code. I still need

Re: [3.5.1] build broken in KDE4FilePicker.cxx

2012-03-13 Thread Lubos Lunak
ably want 77ee92a6bd8f40022ab03325d158de4b67a41dd0 , which I think only made it to 3-5 branch but not 3-5-1, in which case you probably want ee67c55260ec7723c39606955ccdbd3e2934935a . -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list Li

Re: -Wno-non-virtual-dtor

2012-03-13 Thread Lubos Lunak
or clang-3.1r152540. So it looks like we can either just enable the warning and selectively disable it, or we can have a configure check if some older gcc version has the problem (well, given that #pragma diagnostic is recent with gcc, it'll need an #ifdef anyway). $ g++ -Wall dtor

Re: Exporting templates on Windows (Re: [Libreoffice-commits] .: 7 commits - clucene/patches clucene/source configure.in cppuhelper/inc hwpfilter/source sal/inc solenv/gbuild vbahelper/inc)

2012-03-12 Thread Lubos Lunak
On Monday 12 of March 2012, Stephan Bergmann wrote: > On 03/12/2012 03:09 PM, Lubos Lunak wrote: ... > Looks like a misunderstanding whether hidden visibility is intended for > "remove unnecessary entries from dynamic symbol tables (but keeping > certain symbols exported to no

Re: Exporting templates on Windows (Re: [Libreoffice-commits] .: 7 commits - clucene/patches clucene/source configure.in cppuhelper/inc hwpfilter/source sal/inc solenv/gbuild vbahelper/inc)

2012-03-12 Thread Lubos Lunak
On Monday 12 of March 2012, Michael Stahl wrote: > On 12/03/12 15:09, Lubos Lunak wrote: > > Windows/MSVC experts ... > applying logic to how C++ features interact with linkers on various > platforms is generally a futile endeavour. Works fine for me :). > > Assuming th

Re: [Libreoffice-commits] .: 17 commits - basctl/source chart2/source dbaccess/source desktop/source framework/source idl/source sal/CppunitTest_sal_rtl_strings.mk sal/inc sal/qa sal/rtl sal/util star

2012-03-12 Thread Lubos Lunak
libo/sal/qa/rtl/strings/test_ostring_stringliterals.cxx(103) > > : error C2440: '' : cannot convert from 'const char > > []' to 'rtl::OString' > No constructor could take the source type, or constructor > overload resolution was ambiguous > [

Exporting templates on Windows (Re: [Libreoffice-commits] .: 7 commits - clucene/patches clucene/source configure.in cppuhelper/inc hwpfilter/source sal/inc solenv/gbuild vbahelper/inc)

2012-03-12 Thread Lubos Lunak
Windows/MSVC experts On Monday 12 of March 2012, Stephan Bergmann wrote: > On 03/10/2012 04:39 PM, Lubos Lunak wrote: > > commit 34f8495dd948e2ad9d64c2c19110e69840cefd1a > > Author: Luboš Luňák > > Date: Sat Mar 10 15:37:02 2012 +0100 > > > > exported te

OString string literals ctor

2012-03-07 Thread Lubos Lunak
TL_CONSTASCII_STRINGPARAM( "bar" )) + foo.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "bar" )) that this will be soon obsolete by these changes and easily replaced by plain foo == "bar" (Do we have an Easy Hack asking for the above, so that I change it? I couldn&#

CMake (Re: GNU make version)

2012-03-07 Thread Lubos Lunak
al, I think there are more important problems than having a homebrewn build system that seems to work good enough), but even handwritting Makefile files could have probably won such "fair" comparison. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: String literals, ASCII vs UTF-8

2012-03-05 Thread Lubos Lunak
On Tuesday 28 of February 2012, Lubos Lunak wrote: > I'd like to revisit the choice of considering string literals to be either > ASCII or UTF-8, as discussed in the thread about removing > RTL_CONSTASCII_USTRINGPARAM. While I was ambivalent about it, I now think > we should g

Re: Checking string allocations (was Re: String literals, ASCII vs UTF-8)

2012-03-01 Thread Lubos Lunak
On Wednesday 29 of February 2012, Caolán McNamara wrote: > On Wed, 2012-02-29 at 17:11 +0100, Lubos Lunak wrote: > > Do we actually have code that tries to gracefully handle running out of > > memory? Because if not, and I doubt we realistically do[*] > > Its not O[U]String

Re: Using a real parser generator to parse numbers (and dates)

2012-02-29 Thread Lubos Lunak
On Wednesday 29 of February 2012, Lionel Elie Mamane wrote: >So here's the patch for a boost-free OUString, with manually >implemented const_iterator. > +OSL_ASSERT( p <= s->getLength() ); OSL_ASSERT() is obsolete, use normal assert(). -- Lubos Lu

Re: Checking string allocations (was Re: String literals, ASCII vs UTF-8)

2012-02-29 Thread Lubos Lunak
On Wednesday 29 of February 2012, Stephan Bergmann wrote: > On 02/29/2012 03:28 PM, Lubos Lunak wrote: > > On Wednesday 29 of February 2012, Stephan Bergmann wrote: > >> However, there are also situations where bad input (malicious or > >> otherwise) would cause an appli

Checking string allocations (was Re: String literals, ASCII vs UTF-8)

2012-02-29 Thread Lubos Lunak
does not really need it in OUString ctors. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Checking string allocations (was Re: String literals, ASCII vs UTF-8)

2012-02-28 Thread Lubos Lunak
xt time the larger string can cause running out of memory when appending to OUStringBuffer, when invokend with OUString's operator+, or any other of those functions that OSL_ENSURE the allocation result and are done with it. -- Lubos Lunak l.lu...@suse.cz _

Re: String literals, ASCII vs UTF-8

2012-02-28 Thread Lubos Lunak
ions - with today's systems (overcommitting, etc.) it is rather pointless to guard against allocation failures Does somebody see a good reason not to just remove it? -- Lubos Lunak l.lu...@suse.cz From e1e3406cb73559c7760f0e28965a8bb0c4c19b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo

Re: LIcensing of libwp* and its effect on that of libcdr and libvisio

2012-02-28 Thread Lubos Lunak
ments, which can be satisfied by providing a notice and our source code. Specifically, I think section 5 of LGPLv3 applies here. But the proper solution to this problem is finding somebody who can't say IANAL and thus should be able to provide a founded answer. I would be surprised

Re: -std=c++0x vs -std=gnu++0x

2012-02-24 Thread Lubos Lunak
On Thursday 23 of February 2012, Stephan Bergmann wrote: > On 02/23/2012 05:08 PM, Lubos Lunak wrote: > > commit 437fe5a11f68d1848c49121394f16f09611b made me notice that we > > actually build with -std=c++0x and not -std=gnu++0x, which I think would > > make more sense a

-std=c++0x vs -std=gnu++0x

2012-02-23 Thread Lubos Lunak
s are disabled. Any objections to switching to gnu++0x ? -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: [PATCH][PUSHED] Fix windows build

2012-02-23 Thread Lubos Lunak
, which avoids the ambiguity in all the other places where the value passed is const. BTW, the two ctor variants even do different things, despite looking semantically equivalent at a first look, so this looks like misdesigned API to me. -- Lubos Lunak l.lu...@suse.cz

Re: const*const - what is the purpose of this?

2012-02-23 Thread Lubos Lunak
hing that is not intended to be changed, so the second const does serve a purpose and theoretically this form is actually the correct one, but in practice people do not bother with the second const for the convenience of less typing and easier

Re: RTL_CONSTASCII_USTRINGPARAM: cleanup wanted?

2012-02-22 Thread Lubos Lunak
odata. It is doable with a macro [*], but then we're back at the beginning of this RTL_CONSTASCII_USTRINGPARAM discussion. [*] http://www.macieira.org/blog/2011/07/qstring-improved/ -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list

Re: Obsoleting RTL_CONSTASCII_USTRINGPARAM

2012-02-22 Thread Lubos Lunak
On Thursday 09 of February 2012, Lubos Lunak wrote: > Actually, no need for a week, this one is reasonably simple. Therefore I > challenge RTL_CONSTASCII_USTRINGPARAM to a fight to the death. Its death, > that is. > > Attached is a patch that removes the need for RTL_CONSTASC

Re: Has the time come to get rid of the "delivering" of public headers?

2012-02-22 Thread Lubos Lunak
d, since I'm already asking, is the Windows performance the reason include files are scattered this way? E.g. in sw/ I find this actually rather annoying, some .hxx files are in inc/, some next to .cxx sources, Writer AFAIK does not really export anything anyway, and I always have to jump around ju

Re: RTL_CONSTASCII_USTRINGPARAM: cleanup wanted?

2012-02-22 Thread Lubos Lunak
nd while I've eventually found a way to do it, based on http://www.macieira.org/blog/2011/07/initialising-an-array-with-cx0x-using-constexpr-and-variadic-templates/ , see attachment, it turns out to be unusable in practice. Maybe later. -- Lubos Lunak l.lu...@suse.cz // With gcc-4.5.1

Re: [Libreoffice-commits] .:

2012-02-22 Thread Lubos Lunak
es of the latter to become > uses of the former; so if you seek consistency across a function, it > might be better to replace other occurrences of sal_True/False than to > do the opposite). Moreover, although the change technically keeps the code the same, it slightly breaks the semantics

Re: RTL_CONSTASCII_USTRINGPARAM: cleanup wanted?

2012-02-21 Thread Lubos Lunak
ere.) Everywhere, eventually. If it can work for ctors, it should work everywhere else too. -- Lubos Lunak l.lu...@suse.cz ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Obsoleting RTL_CONSTASCII_USTRINGPARAM

2012-02-10 Thread Lubos Lunak
On Friday 10 of February 2012, Stephan Bergmann wrote: > On 02/10/2012 12:18 PM, Lubos Lunak wrote: > > This is sal/, so the library needs to maintain binary compatibility, > > does it not? That requires adding the OUString overload rather than > > fixing the exiting func

Re: Obsoleting RTL_CONSTASCII_USTRINGPARAM

2012-02-10 Thread Lubos Lunak
On Friday 10 of February 2012, Stephan Bergmann wrote: > On 02/10/2012 11:30 AM, Lubos Lunak wrote: > > +/** > > + * @overload > > + * @since LibreOffice 3.6 > > + */ > > +oslGenericFunction SAL_CALL getFunctionSymbol( const > > ::rtl::O

Re: Obsoleting RTL_CONSTASCII_USTRINGPARAM

2012-02-10 Thread Lubos Lunak
On Friday 10 of February 2012, Stephan Bergmann wrote: > On 02/09/2012 06:16 PM, Lubos Lunak wrote: > > Attached is a patch that removes the need for > > RTL_CONSTASCII_USTRINGPARAM (henceafter called 'macro', because it annoys > > me to write this even in it

Re: Obsoleting RTL_CONSTASCII_USTRINGPARAM

2012-02-10 Thread Lubos Lunak
On Thursday 09 of February 2012, Caolán McNamara wrote: > On Thu, 2012-02-09 at 18:16 +0100, Lubos Lunak wrote: > > suggests that OString in fact does not stop at \0's when handling > > strings. I'm kind of baffled by this, I personally consider it a flaw > > that a

Obsoleting RTL_CONSTASCII_USTRINGPARAM

2012-02-09 Thread Lubos Lunak
On Thursday 09 of February 2012, Lubos Lunak wrote: > On Thursday 09 of February 2012, Michael Meeks wrote: > > Personally, I'd -love- someone to rename ~all of these > > RTL_USTR() or RTL_STR() or somesuch - we have enough pointlessly hard to > > read and indent co

<    1   2   3   4   5   6   7   8   >