Commit Graph

46 Commits

Author SHA1 Message Date
Stephan Bergmann
5da0dce19c Consolidate isFileUrl checks
Change-Id: I1b74fdfaa09c4d0d6c296253958e83e78b546a9a
2015-08-19 12:24:37 +02:00
Stephan Bergmann
54e87df11f Change INetProtocol enumerators to CamelCase
...to avoid clashes with macros and poor warnings about hiding global FILE

Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02 18:33:37 +02:00
Stephan Bergmann
44b3e56bb4 Change INetProtocol to scoped enumeration
...and fix o3tl::enumarray::operator [] const overload

Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02 16:30:34 +02:00
Stephan Bergmann
7889f9e5a3 Some more loplugin:cstylecast: extensions
Change-Id: I3b1a00f12b75e3b115e08289b7f486a6a9c3c863
2015-01-20 09:06:47 +01:00
Noel Grandin
7f8f277b94 fdo#84938: convert STREAM_ #defines to 'enum class'
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-07 11:20:44 +02:00
Stephan Bergmann
ad9498f8b8 More -Werror,-Wunused-private-field
...detected with a modified trunk Clang with

> Index: lib/Sema/SemaDeclCXX.cpp
> ===================================================================
> --- lib/Sema/SemaDeclCXX.cpp	(revision 219190)
> +++ lib/Sema/SemaDeclCXX.cpp	(working copy)
> @@ -1917,9 +1917,10 @@
>    const Type *T = FD.getType()->getBaseElementTypeUnsafe();
>    // FIXME: Destruction of ObjC lifetime types has side-effects.
>    if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl())
> -    return !RD->isCompleteDefinition() ||
> -           !RD->hasTrivialDefaultConstructor() ||
> -           !RD->hasTrivialDestructor();
> +    return !RD->hasAttr<WarnUnusedAttr>() &&
> +           (!RD->isCompleteDefinition() ||
> +            !RD->hasTrivialDefaultConstructor() ||
> +            !RD->hasTrivialDestructor());
>    return false;
>  }
>
> @@ -3517,9 +3518,11 @@
>    bool addFieldInitializer(CXXCtorInitializer *Init) {
>      AllToInit.push_back(Init);
>
> +#if 0
>      // Check whether this initializer makes the field "used".
>      if (Init->getInit()->HasSideEffects(S.Context))
>        S.UnusedPrivateFields.remove(Init->getAnyMember());
> +#endif
>
>      return false;
>    }

to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about
initializations with side effects (cf.
<http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html>
"-Wunused-private-field distracted by side effects").

Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
2014-10-15 15:58:56 +02:00
Caolán McNamara
bae5099882 coverity#983658 Uncaught exception
Change-Id: I99cb4f64b093765d0667ddcddf1f696891450a9a
2014-07-02 10:46:45 +01:00
Thomas Arnhold
f106f41956 postwin.h handles OPTIONAL already
Change-Id: Ia04bc545f90a093f70bbd7036b7b9403af15daa1
2014-05-09 22:32:53 +02:00
Michael Stahl
e98e738a82 replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
2014-04-11 23:08:11 +02:00
Stephan Bergmann
70cc2b191b First batch of adding SAL_OVERRRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26 16:39:26 +01:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Tobias Lippert
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
Noel Grandin
22435a0777 remove unnecessary use of OUString constructor in EXTENSIONS module
Change-Id: Idf73eb831f52d4d74e6fbb6ea27f59ebbfd13a8c
2013-11-11 11:21:23 +02:00
Stephan Bergmann
a95d1eff07 Remove effectively unused INetURLObject OString overloads
Change-Id: Icbbe27b229d5454d27be646e00e8b362a77359b3
2013-07-29 08:26:29 +02:00
Michael Meeks
1e4422a4b4 re-base on ALv2 code. Includes:
Patches contributed by Mathias Bauer
        gnumake4 work variously
        http://svn.apache.org/viewvc?view=revision&revision=1394707
        http://svn.apache.org/viewvc?view=revision&revision=1394326
        http://svn.apache.org/viewvc?view=revision&revision=1397337
        http://svn.apache.org/viewvc?view=revision&revision=1397315
        http://svn.apache.org/viewvc?view=revision&revision=1396797

	Patches contributed by Andre Fischer
	Fixed getcsym.awk to handle #-comments that contain special regexp chars.
        http://svn.apache.org/viewvc?view=revision&revision=1230971
	118778: Added ADDITIONAL_REPOSITORIES environment variable and its
	automatic setup in configure.
        http://svn.apache.org/viewvc?view=revision&revision=1232004
	118160: Added external CoinMP library.
        http://svn.apache.org/viewvc?view=revision&revision=1233909

	Patches contributed by Herbert Duerr
	#i119168# use generic LICENSE file for langpacks and sdks
        http://svn.apache.org/viewvc?view=revision&revision=1310178
	macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars
        http://svn.apache.org/viewvc?view=revision&revision=1183367
	allow gbuild with empty sysroot on linux
        http://svn.apache.org/viewvc?view=revision&revision=1179186

	Patches contributed by Ingo Schmidt
	native373: #164472# improvements for msi database
        http://svn.apache.org/viewvc?view=revision&revision=1167540
        http://svn.apache.org/viewvc?view=revision&revision=1167539

	Patches contributed by Jurgen Schmidt
	adapt setup package scripts to handle special DS_Store file for
	developer snapshot builds
        http://svn.apache.org/viewvc?view=revision&revision=1232430
	imported patch extensions_i117681.patch
	http://svn.apache.org/viewvc?view=revision&revision=1172102

	Patches contributed by Michael Stahl
	gbuild: RepositoryFixes.mk should be optional
        http://svn.apache.org/viewvc?view=revision&revision=1166123
	xslt filter: remove the FLA horror
	wordml import filter: replace FLA usage with plain XSLT
	http://svn.apache.org/viewvc?view=revision&revision=1363727

	Patch contributed by Oliver-Rainer Wittmann
	i#88652: applied patch, remove unicows deps
	http://svn.apache.org/viewvc?view=revision&revision=1177585

    Remove lots of OS2 conditionals, re-extract Rhino Java, unwind
    cppunit pieces, cleanup Mac image bits, remove coin-mp and
    re-package lpsolve, Oxygen & Crystal, fixup qstart bits, expand
    MPLv2 subset checking.

Change-Id: Iad5c8a76399620b892671633c0d8c29996db3564
2013-06-03 11:41:36 +01:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Andras Timar
31518d8697 writing out tools/fsys.hxx (extensions)
Change-Id: I6b2132e7441be1579f6233ec56fdaf8807a60b55
Reviewed-on: https://gerrit.libreoffice.org/3119
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-04-04 16:47:02 +00:00
Thomas Arnhold
937b63af33 use startsWith() instead of compareToAscii()
brain damage...

Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
2013-03-11 11:07:09 +01:00
Thomas Arnhold
c4cc63badc sal: update log areas
Change-Id: Id7b2c7e871abf19b70f427095371c6a6c0208607
2013-02-23 13:31:09 +01:00
Noel Grandin
bb121c864c fdo#46808, Convert frame::Desktop to new style service.
I had to drop XEventBroadcaster from the merged interface
because it introduced method name conflicts (addEventListener).

Shouldn't be an issue since it was scheduled to be dropped anyhow,
and the service implementation still implements it, so existing clients
will be fine.

I dropped the interface XPropertySet from the combined IDL because nobody
seems to be using it, and it's primary purpose appears to be to set weird
flags.

I dropped the optional interfaces
   XStatusIndicatorFactory
   XDispatchInformationProvider
from the combined IDL because the service does not implement them, and
nobody seems to be using them. I suspect they were mistakenly copied
from XFrame.

I also did not convert the Title, UserDefinedAttributes and LayoutManager
properties to attributes, again because no-one is using them.

Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-21 10:57:09 +02:00
Norbert Thiebaud
601500f8a8 targeted string re-work
Change-Id: I6ce76c22118586b213161a0e307a53b22b318004
2012-05-29 19:30:23 -05:00
Caolán McNamara
76cc8aca42 WaE: unchecked results from write/fwrite
Change-Id: Ia7943a132d05e596550bd71878b54b2825c31987
2012-05-03 22:34:17 +01:00
Olivier Hallot
0fd40fe17b Fix for fdo43460 Part XVI getLength() to isEmpty()
Part XVI
Module
extensions
2011-12-23 09:36:43 +01:00
Norbert Thiebaud
0a96c1f4f4 remove include of pch header in extensions 2011-11-27 13:08:28 -06:00
David Tardon
fba911fea7 gsl_getSystemTextEncoding -> osl_getThreadTextEncoding 2011-11-25 09:07:49 +01:00
Fridrich Štrba
5f962e4465 Fix Windows build of extensions 2011-03-29 21:59:45 +02:00
Fridrich Štrba
255677ab5b Trying to remove the stlport mention from the code 2011-02-09 19:56:30 +01:00
Gert Faller
7692bfc268 RTL_CONSTASCII_USTRINGPARAM in components 3 2010-11-28 18:33:53 +01:00
Gert Faller
1231e74a6d RTL_CONSTASCII_USTRINGPARAM in components 2 (build problem in sal ?) 2010-11-27 17:20:30 +01:00
Gert Faller
f357474191 RTL_CONSTASCII_USTRINGPARAM in components 1 2010-11-27 11:54:21 +01:00
Caolán McNamara
1cc2282705 fix AIX build 2010-10-13 15:44:23 +01:00
Sebastian Spaeth
ead7290449 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-13 10:57:23 +02:00
Petr Mladek
e2039c054c remove include guards using fixguard.py 2010-10-05 18:08:01 +02:00
Jens-Heiner Rechtien
36de66bdf0 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Rüdiger Timm
91baa8f04e INTEGRATION: CWS changefileheader (1.11.48); FILE MERGED
2008/04/01 12:29:46 thb 1.11.48.2: #i85898# Stripping all external header guards
2008/03/31 12:31:35 rt 1.11.48.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:21:16 +00:00
Ivo Hinkelmann
e41f1ecc43 INTEGRATION: CWS wae4extensions (1.10.192); FILE MERGED
2007/09/27 12:18:49 fs 1.10.192.2: #i81612# warning-free on unxlngi6/.pro
2007/09/27 10:20:01 fs 1.10.192.1: #i81612# warning-free code
2008-01-14 13:50:01 +00:00
Oliver Bolte
da5d9cdf4a INTEGRATION: CWS pchfix02 (1.9.186); FILE MERGED
2006/09/01 17:26:34 kaib 1.9.186.1: #i68856# Added header markers and pch files
2006-09-16 12:07:11 +00:00
Rüdiger Timm
765fbcf28f INTEGRATION: CWS ooo19126 (1.8.308); FILE MERGED
2005/09/05 12:59:42 rt 1.8.308.1: #i54170# Change license header: remove SISSL
2005-09-08 18:50:01 +00:00
Oliver Bolte
f3388689dd INTEGRATION: CWS vcl18 (1.7.228); FILE MERGED
2004/02/10 14:49:50 pl 1.7.228.1: #i12911# possibly provide seekable streams
2004-03-17 09:13:14 +00:00
Rüdiger Timm
b193e2646e #105360#,#100000# The default parameter for INetURLObject::GetMainURL has been removed. 2002-12-03 09:34:11 +00:00
Philipp Lohmann
1296fcdafb #97741# #96524# catch exceptions and throw only as per exception specification 2002-04-11 10:54:19 +00:00
Philipp Lohmann
ede9d0ba85 #92075# changes for new Solaris compiler 2001-09-11 11:06:16 +00:00
Philipp Lohmann
c9ad45da3e rtl string api changes 2001-05-14 08:43:44 +00:00
Philipp Lohmann
e6b472c078 #79029# change datatransfer to use UCB (DataSourceFactory service vanished) 2000-12-07 18:29:03 +00:00
Hans-Joachim Lankenau
2b8a1d7033 include 2000-11-07 09:26:34 +00:00
Jens-Heiner Rechtien
95117e7fef initial import 2000-09-18 15:18:56 +00:00