Commit Graph
385 Commits
Author SHA1 Message Date
Stephan Bergmann 99c99e3c75 cid#1403658: Try harder to make Coverity Scan happy
Change-Id: I109f95a55875b7795fc366825b3a6bb2e897d676
2017-05-11 17:07:32 +02:00
Jochen Nitschke 959496794c cleanup osl/diagnose.h includes
with command
> git grep -l osl/diagnose.h *.cxx |
  xargs grep -L -w 'OSL_\w*' |
  xargs sed -i '/#include *\(<\|\"\)osl\/diagnose.h\(>\|\"\).*/d'

headers need more work

Change-Id: I906519ebbd47a04703b4fa5943b2f7abea7a97ab
Reviewed-on: https://gerrit.libreoffice.org/37350
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-05-09 15:41:46 +02:00
Stephan Bergmann 693528ffd4 Don't use uninitialized ProxyEntry::Port values
...and get rid of the useless ProxyEntry struct altogether

Change-Id: I846f126c96343da17518686e666a7d44c6b1bef1
2017-05-09 10:21:19 +02:00
Stephan Bergmann 9a4b0beaa5 cid#1403658: Let ImplGetLocale return empty Optional for bad input
...like non-ASCII or too-long env var content on Linux

Change-Id: Ic2c536fa92b88108e96a0fc1a657180bc1906f01
Reviewed-on: https://gerrit.libreoffice.org/36067
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-04-04 12:05:21 +00:00
Stephan Bergmann 77c2b0a33e In Unix ImplGetLocale, read env vars instead of calling setlocale
...to avoid the general problems with the latter (MT issues; changing global
state)

Change-Id: I21eb129b7e1422089b3449763f64f461371ffff1
2017-03-23 10:48:54 +01:00
Caolán McNamara 27a673ac52 coverity#1371289 Missing move assignment operator
Change-Id: Idc26faf904f0c89cfd66f53bb311d8ce9b41eaab
2017-02-08 10:41:06 +00:00
Stephan Bergmann 87087bab94 loplugin:stringconstant
Change-Id: I8b7611d6fdc55fc8cd9551e129a2e03e58682229
2017-02-01 16:00:41 +01:00
Stephan Bergmann 5a3722b230 loplugin:stringconstant
Change-Id: Ic22b9c0c245cca23770a05518534a666e00f9f3e
2017-02-01 08:27:50 +01:00
Jochen Nitschke 681c329b7f loplugin:stringconstant
Change-Id: I7e90f4fecf7243c7551ec7ecbb29adfa92a86447
Reviewed-on: https://gerrit.libreoffice.org/33648
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-01-28 14:38:25 +00:00
Noel Grandin f1d83ac45f loplugin:stringconstant check for unnecessary OUString constructor..
..calls when creating exceptions

Change-Id: I3bc58a5aa4dc6f0508ecb88b3a843b96b8c7ebfe
Reviewed-on: https://gerrit.libreoffice.org/33617
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-28 09:22:55 +00:00
Stephan Bergmann df60fbc361 Remove dynamic exception specifications from some TDE-only code
Change-Id: Ic5fa5648d0d52bf5a16b5d3c32c549d5fffb2f4f
2017-01-27 12:07:10 +01:00
Stephan Bergmann e57ca02849 Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only).  See the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html>
"Dynamic Exception Specifications" for details.

Most changes have been done automatically by the rewriting loplugin:dynexcspec
(after enabling the rewriting mode, to be committed shortly).  The way it only
removes exception specs from declarations if it also sees a definition, it
identified some dead declarations-w/o-definitions (that have been removed
manually) and some cases where a definition appeared in multiple include files
(which have also been cleaned up manually).  There's also been cases of macro
paramters (that were used to abstract over exception specs) that have become
unused now (and been removed).

Furthermore, some code needed to be cleaned up manually
(avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
configurations available that would actually build that code.  Missing @throws
documentation has not been applied in such manual clean-up.

Change-Id: I3408691256c9b0c12bc5332de976743626e13960
Reviewed-on: https://gerrit.libreoffice.org/33574
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-26 12:54:43 +00:00
Caolán McNamara b29069d163 can use truncate instead of a new OUStringBuffer
Change-Id: I6efd48af1e00c21675ef0697b38185008a794d7a
2017-01-20 10:11:56 +00:00
Noel Grandin 4ef9ccea6c OSL_TRACE -> SAL in sfx2..svx
Change-Id: I78cf8058a5682baa3d7b00a25feeb2d28fb3e66e
Reviewed-on: https://gerrit.libreoffice.org/31799
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-11 18:56:16 +00:00
Stephan Bergmann 85876a11ce clang-cl loplugin: shell
Change-Id: I98d2e5154270b795cdd11653ecfff2abd8dda294
Reviewed-on: https://gerrit.libreoffice.org/29851
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-15 08:57:39 +00:00
Jan-Marek Glogowski f486329a03 TDE fix some clang plugin based warnings
Change-Id: I3b44038e8a889e4c13126fd8d721e53e71ea9ec6
2016-09-23 23:25:47 +02:00
Stephan Bergmann ebe46f14a2 loplugin:override
Change-Id: I7b746d652887d61e6a8a63b5b3ba37e0a158817e
2016-09-14 00:05:56 +02:00
Stephan Bergmann 91dd2db17b loplugin:override: No more need for the "MSVC dtor override" workaround
The issue of 362d4f0cd4 "Explicitly mark
overriding destructors as 'virtual'" appears to no longer be a problem with
MSVC 2013.

(The little change in the rewriting code of compilerplugins/clang/override.cxx
was necessary to prevent an endless loop when adding "override" to

  OOO_DLLPUBLIC_CHARTTOOLS    virtual ~CloseableLifeTimeManager();

in chart2/source/inc/LifeTime.hxx, getting stuck in the leading
OOO_DLLPUBLIC_CHARTTOOLS macro.  Can't remember what that
isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.)

Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-09-13 13:19:22 +02:00
Tor Lillqvist 01755200f6 Bin some noise comments and superfluous vertical whitespace
Change-Id: I3c19457bb29cd1392f14598fc8798aed4b1a1a7f
2016-09-12 23:29:32 +03:00
Stephan Bergmann 21385d2049 Revert "Remove WorkPathVariable support from KDE backends"
This reverts commit 8da1d7869a.

plus:

Revert "Revert "KDE: don't throw on TemplatePathVariable""

This reverts commit 72812a380c.

I had misread the code and thought that handling of those two properties in
shell/source/backends/desktopbe/desktopbackend.cxx would hide handling them in the
specific KDE backends, but that is not actually the case.

Change-Id: I32fae5ba34cc934ceca2f574d50fc327b506b001
2016-08-23 10:19:40 +02:00
Stephan Bergmann 8da1d7869a Remove WorkPathVariable support from KDE backends
...now that b5c05876f7 "Related: rhbz#1065807
recover using xdg templates and documents settings" handles WorkPathVariable in
the generic shell/source/backends/desktopbe/desktopbackend.cxx code.

Change-Id: I3920cdb3f54688462813d212569c9b33a1371333
2016-08-22 17:55:23 +02:00
Stephan Bergmann 72812a380c Revert "KDE: don't throw on TemplatePathVariable"
This reverts commit e44a7eefb7, which is no longer
necessary now that b5c05876f7 "Related:
rhbz#1065807 recover using xdg templates and documents settings" handles
TemplatePathVariable in the generic
shell/source/backends/desktopbe/desktopbackend.cxx code.
2016-08-22 17:52:24 +02:00
Stephan Bergmann 4278cac893 tdf#101661: Report XDG_{DOCUMENTS,TEMPLATES}_DIR only when it exists
...as had been done in the GConf-based backend prior to
3cf557c12d "drop gconf integration as per ESC
decision".

Change-Id: I56f256aaec542e0a62fc30a37d5c982e93e77812
2016-08-22 17:36:15 +02:00
Michael Stahl c13d130024 shell: loplugin:nullptr / staticanonymous / stringconstant
Change-Id: I67458301fb13601c5bf8d83c689fd861694ee460
2016-07-22 12:33:56 +02:00
Caolán McNamara b5c05876f7 Related: rhbz#1065807 recover using xdg templates and documents settings
Change-Id: If2c594174a6fa8c524d9664c9f197cb7c6d4641d
2016-07-22 09:51:31 +01:00
Caolán McNamara 7eed51d033 There is no css.configuration.backend.GconfBackend
since

commit 3cf557c12d
Author: Bjoern Michaelsen <bjoern.michaelsen@canonical.com>
Date:   Fri Oct 16 12:15:55 2015 +0100

    drop gconf integration as per ESC decision

    Conflicts:
        shell/source/backends/gconfbe/gconfbackend.cxx

Change-Id: If8e9b273e410250b45d3f645f6a31c1e80f02c6c
2016-07-22 09:51:31 +01:00
skswales a50cdeb70e Work towards tdf#72606 EasyHack _tstring/TCHAR elimination
shell module largely already compiled UNICODE: A/W clarity

Verified by installing release build and trying property sheets etc.

Change-Id: I4965cdadbce635d86da1996c3c1bbd37a981ffde
Reviewed-on: https://gerrit.libreoffice.org/26556
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-06-22 12:31:42 +00:00
Jochen Nitschke 0de868cd0f tdf#94306 replace boost::noncopyable in sfx2 to sot
Replace with C++11 delete copy-constructur
and copy-assignment.
Remove boost/noncopyable.hpp includes.
Add missing default ctors.
Make some overloaded ctors explicit,
seems cppcheck doesn't flag: T(const template<X>& rx).

Change-Id: I63c5a3ac84a33ea6d49868e2d9aa281ada79958e
Reviewed-on: https://gerrit.libreoffice.org/24050
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-04-13 11:34:32 +00:00
Noel Grandin 2087484c65 use consistent #define checks for the Windows platform
stage 2 of replacing usage of various checks for the windows platform
with the compiler-defined '_WIN32' macro

In this stage we focus on replacing usage of the WIN macro

Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84
Reviewed-on: https://gerrit.libreoffice.org/22393
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-17 11:33:57 +00:00
Chris Sherlock a238b1f8d3 Remove excess newlines
A ridiculously fast way of doing this is:

for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \
  --exclude-dir=workdir --exclude-dir=instdir '^
{3,}' .)
do
    perl -0777 -i -pe 's/^
{3,}/

/gm' $i
done

Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
Reviewed-on: https://gerrit.libreoffice.org/22224
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09 08:18:05 +00:00
Caolán McNamara 0aa5414015 cppcheck: noExplicitConstructor
Change-Id: If1ddb112c85f127295eb55566360b066e7173ba2
Reviewed-on: https://gerrit.libreoffice.org/21245
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-01-08 17:15:04 +00:00
Jan-Marek Glogowski d9bceb3431 tdf#84263 KDE4: unify includes
Use Qt submodule notation for Qt includes and also "correct"
some KDE headers AKA use <> notation for external headers.

Change-Id: I9457f75baae56514989800b016a11348a72a242b
2016-01-02 03:51:12 +01:00
Stephan Bergmann 4b7d3395ca Don't assume sal_Unicode is unsigned short
Change-Id: I721f53d79cd3e2c24542382d519a909a86a31111
2015-11-17 22:28:10 +01:00
Stephan Bergmann ceeeb48f15 Don't assume sal_Unicode is unsigned short
Change-Id: Id3f43ba115d519e789b7eaf014734d2fd31d39cc
2015-11-17 10:41:21 +01:00
Noel Grandin 96c26b0d9d use initialiser for Sequence<OUString>
using variations of:
git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\;
\s*OUString\* pArray.*;
.*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g"

Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3
Reviewed-on: https://gerrit.libreoffice.org/19971
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15 12:20:39 +00:00
Noel Grandin 54d22957bc use initialiser for Sequence<OUString>
performed using:
git grep -lP 'Sequence.*OUString.*\(1\)'
| xargs perl -0777 -pi -e
  "s/Sequence<OUString> (\w+)\(1\);
.*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g"

Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f
Reviewed-on: https://gerrit.libreoffice.org/19968
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15 11:31:23 +00:00
Stephan Bergmann b6f6cf85ab loplugin:nullptr (automatic rewrite; Mac-specific code)
Change-Id: Iaa14c583c55c3582e33a1d073ea92b388cd6f3a4
2015-11-10 16:20:38 +01:00
Stephan Bergmann 7a8d48f57d loplugin:nullptr (automatic rewrite)
Change-Id: Ied61699170bd5d2c3878135b1a43b4dc1deff4d4
2015-11-10 10:31:39 +01:00
Stephan Bergmann b8f0442fca loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I7cf9fe48cf1c38a4327290e9393a5f88f3d4a97d
2015-11-06 09:37:16 +01:00
Stephan Bergmann b82f36ab63 loplugin:stringconstant
Change-Id: Ib579c499904bf10844ed58dfd3e531002b308dcf
2015-11-04 14:05:52 +01:00
Noel Grandin 59b072e22b yyyyy
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-04 14:10:44 +02:00
Noel Grandin 56c4032272 com::sun::star->css in shell
Change-Id: Id74a5e79764f37944afab4d2a0dcfc7dbfc9b295
Reviewed-on: https://gerrit.libreoffice.org/19663
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-29 08:44:12 +00:00
Noel Grandin 3d784c4af6 remove extra spaces around ::
just makes it harder to grep for methods

Change-Id: I0925db2f9284972fcf7e1e3adf90cbe21f69eb15
2015-10-26 09:12:05 +02:00
Bjoern Michaelsen 3cf557c12d drop gconf integration as per ESC decision
Conflicts:
	shell/source/backends/gconfbe/gconfbackend.cxx

Change-Id: I609ec83ec59f5ae8d3a8c9c09649695bfcb03b87
Reviewed-on: https://gerrit.libreoffice.org/19408
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-10-16 13:50:28 +00:00
Stephan Bergmann b36963c0a6 Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12 17:52:29 +02:00
Takeshi Abe cfaebe5de9 shell: tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants.

Change-Id: I0eb2efbd123198c7d8a99e9dd7c613f9b2b23c2d
Reviewed-on: https://gerrit.libreoffice.org/18286
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-09-03 17:55:02 +00:00
Michael Stahl 72699595aa remove KDE3 support, --enable-kde and --enable-kdeab
With the new RHEL6-era baseline TDF can finally ship KDE4 support.

Change-Id: I227278b576a3ed2f2aaa751d41b469ca92dc78b3
Reviewed-on: https://gerrit.libreoffice.org/18267
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-03 08:18:03 +00:00
Stephan Bergmann 330680784a loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Idc3c74505d84a96bb5cc6713a95ef2fadc267ea8
2015-08-31 14:39:12 +02:00
Stephan Bergmann c8f6c456bd loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I2e97fa10baa6a9bd290fabe250cf73d5f73e4537
2015-08-31 08:01:51 +02:00
Noel Grandin e963a88912 formatting of public/private/protected section qualifiers
make it consistent across the codebase, no space between keyword
and the colon

Change-Id: Idca61ddfc74ad2460fb05fe417499324b05e5de5
Reviewed-on: https://gerrit.libreoffice.org/17148
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-17 09:49:35 +00:00