1064 Commits

Author SHA1 Message Date
Stephan Bergmann
a0737fb591 Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: If5714853a977068c2a75891c77c26d9c06989548
2015-03-31 13:11:57 +02:00
Stephan Bergmann
1fca9d1893 loplugin:cstylecast
Change-Id: Idcc1b71c55d6cfd983ad78e8c0cccf2e2242a659
2015-03-29 20:56:05 +02:00
Stephan Bergmann
a52cf476e7 Clean up template-parameter-dependent C-style casts
Change-Id: Ia1ab134a0afbeeb3ae40264bd4233a47df26b734
2015-03-29 15:13:45 +02:00
Stephan Bergmann
03621417bf Clean up C-style casts from pointers to void
Change-Id: I61b960eecaeadaf12121596e181604318f951094
2015-03-28 19:09:17 +01:00
Noel Grandin
a1d10eb8d7 convert AVMEDIA_ constants to enum class
Change-Id: Ic4918f57a1575a24cf0b9251cc7e7c6180ee25fd
2015-03-27 08:33:44 +02:00
Noel Grandin
ffcfcd76d1 convert SfxChildAlignment to enum class
Change-Id: I9013bc6dace79421b0a9ad0401a4fb59365d4dcf
2015-03-24 09:36:56 +02:00
Stephan Bergmann
d7b48d03b6 Clean up previous commit
Change-Id: I0e0351177fa72b7aeff7e2d61122f4590e8e6311
2015-03-11 18:38:29 +01:00
Chris Sherlock
84206b23bd avmedia: use constructor syntax for avmedia.component
Change-Id: Ia4572e10fb97a5e88f08341d8a1c8af87e68904c
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-03-11 18:38:29 +01:00
Miklos Vajna
686ee0aaca avmedia: avoid passing an empty any to InitPropertySequence()
Regression from b1534edf523a405b91ad04c5351735e745ceb7ee (tdf#89592
Using initializer_lists to populate Sequence<PropertyValue>,
2015-03-07).

Additionally, avoid makeAny() on the Any, the original code didn't do
that.

Thanks to lgodard/sberg for noticing these.

Change-Id: Icb3a6039885c582ba9f789c5c4768b865b593aee
2015-03-10 11:56:37 +01:00
Swachhand Lokhande
b1534edf52 tdf#89592 Using initializer_lists to populate Sequence<PropertyValue>
Change-Id: Idef9dd55eb1719eaf592bc4a86440cbd5aa4fb32
Reviewed-on: https://gerrit.libreoffice.org/14781
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-03-10 10:26:59 +00:00
Tobias Madl
8f9b0c8692 Idle: Changed to new enum name
Change-Id: Id3852abe9bc7bbe774331a7d691abd2a79ff59b4
2015-03-06 12:27:10 +00:00
Tobias Madl
2d95bc0510 Idle: Removed VCL_IDLE_PRIORITY_ prefix of enum
Change-Id: I12290bed7e4f298ab90393b8de6e2b6e7061e53f
2015-03-06 12:27:09 +00:00
Tobias Madl
826143684d Timer: Adapted all idle includes and enum uses
Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da
2015-03-06 12:27:05 +00:00
Noel Grandin
ba233e87ef remove unnecessary parenthesis in return statements
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'

Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
2015-02-23 09:26:58 +02:00
Noel Grandin
b44cbb26ef new loplugin: change virtual methods to non-virtual
Where we can prove that the virtual method is never overriden.

In the case of pure-virtual methods, we remove the method entirely.
Sometimes this leads to entire methods and fields being
eliminated.

Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
2015-01-26 08:42:28 +02:00
Michael Stahl
ba68436e3f Win SDK 8.1: apparently VersionHelpers.h needs to be included explicitly
http://ci.libreoffice.org/job/lo_gerrit_master/495/Gerrit=Gerrit,Platform=Windows/console

Change-Id: I0104d448906bd17857b3716856c544e632c1662c
2015-01-23 14:04:24 +01:00
Stephan Bergmann
231f2b878e Some more loplugin:cstylecast: avmedia
Change-Id: If60734acaa9743cc0cc6b366152bc3085f1f57e8
2015-01-20 09:06:45 +01:00
Michael Stahl
4500afcc1b try to fix GetVersionEx deprecation warnings from Windows SDK 8.1
Apparently GetVersionEx() is deprecated now, but the replacement header
"versionhelpers.h" does not exist in older SDKs (at least not in 8.0),
so try to determine the used SDK version by checking if the Windows 8.1
version constant _WIN32_WINNT_WINBLUE (0x0602) exists.

http://msdn.microsoft.com/en-us/library/windows/desktop/dn424972%28v=vs.85%29.aspx

Change-Id: Ia9224a8c76823ada7cb294a600046c6a0fc843ad
Reviewed-on: https://gerrit.libreoffice.org/14020
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-01-19 20:31:38 +00:00
Caolán McNamara
75d2e7e5d5 GetData is a hopelessly generic name
when you want to find the uses of it

Change-Id: I580c194f0fd200505d3df99089afc0872921a67b
2015-01-14 14:06:14 +00:00
Caolán McNamara
82f02d7248 boost::scoped_ptr->std::unique_ptr
Change-Id: I844532d08123ed0c91ccec73cc806277fd821089
2015-01-09 17:38:02 +00:00
Michael Meeks
8f4044afa2 avmedia: disable VLC unless in experimental model.
The code is really not in an ideal state, the key-frame generation is
horrible - involving playing the video for three seconds each time etc.
While the idea is great - the impl. and libvlc API use needs some love
from a VLC expert really.

Change-Id: If1787749d9952e30c1d80846e925cf1f65231463
2015-01-08 10:05:28 +00:00
Noel Grandin
7f8f277b94 fdo#84938: convert STREAM_ #defines to 'enum class'
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-07 11:20:44 +02:00
Nathan Yee
a509a8d995 Resolves: fdo#87003 Kill BOOST_FOREACH on master
use C++11s range-based for() loops instead

Conflicts:
	sd/source/filter/eppt/pptx-epptooxml.cxx

Change-Id: I0868eb345932c05b7e40b087035da252b99bf0b9
Reviewed-on: https://gerrit.libreoffice.org/13714
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-05 09:34:08 +00:00
Caolán McNamara
7f476fea47 boost::unordered_map -> c++11 std::unordered_map
Change-Id: I28438000c2b0a8e6ce4f5640f861f572c0cb83c8
2014-12-27 23:00:45 +00:00
Stephan Bergmann
a33b4428bd avmedia: Use appropriate OUString functions on string constants
Change-Id: Ie2e2737c1a3eafd9da2472ef354624b67b09ff80
2014-12-18 14:12:22 +01:00
Stephan Bergmann
66b4128f89 avmedia: Use appropriate OUString functions on string constants
Change-Id: I1abbe02b6a449d61d6bed5a7659f81ec4cf985fe
2014-12-12 10:20:55 +01:00
Tobias Madl
50fdcff56a removed unused timeout defines
Change-Id: I1ebada7b06657e0ac294e60bca5d6dd5b45e9d04
2014-12-09 12:35:04 +00:00
Jennifer Liebel
2a55005675 changed timers to idle
Change-Id: I0d2119a297c9a6d9b99676a561ddf4dd654ecaea
2014-12-09 12:34:59 +00:00
Jennifer Liebel
e5f67b2e94 changed timers to idle
Change-Id: I05ccb8bd73070462edcc911956859aa7967b5901
2014-12-09 12:34:57 +00:00
Michael Weghorn
3338f47918 reduce scope of local variables
This eliminates some of the warnings from Cppcheck report of
2014-11-29.

Change-Id: Id5bf885de12a6de262d2cca9fa71627ac67f50d9
Reviewed-on: https://gerrit.libreoffice.org/13330
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-08 08:01:58 +00:00
Stephan Bergmann
038683bf4c Silence Mac OS X 10.9/10.10 deprecations for now
Change-Id: Ie63ed8f6f66a7641ad872f93d76efb962333cec9
2014-11-26 18:13:08 +01:00
Michael Stahl
15b4ab8d19 cppuhelper: clean up public headers with include-what-you-use
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-18 18:51:49 +01:00
Michael Stahl
6a0fe37dec sal: clean up public headers with include-what-you-use
Sadly cannot forward declare "struct {...} TimeValue;".

rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h
was painful enough for now...

Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-17 11:06:53 +01:00
Caolán McNamara
7a71065b87 catch by reference
Change-Id: Ib1f04971dc89df6df09bd12595d3ddb148715e28
2014-11-14 17:17:50 +00:00
Brij Mohan Lal Srivastava
d32be3ace8 fdo#86023 - O[U]String needs a 'clear' method
Added clear() method to OString and OUString class, Updated appropriate call-sites.

Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-14 09:20:38 +01:00
Andrea Gelmini
da40cac540 Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-12 11:04:11 +00:00
Markus Mohrhard
bd3f92fa29 merge vcllo and vclopengllo
Change-Id: I419ca67dc1f87dd9ac751aa5a094fecf58136edb
2014-11-10 07:58:17 +01:00
Noel Grandin
31d902d3c0 fdo#84938: replace MOUSE_ modifier constants with enum
and make the two categories of constants non-overlapping, we
really don't need to risk confusion in order to save 6 bits in
a data structure like this.

Change-Id: I2251195d8e45ed04e2a89e47ae9c3e52cf0475c0
2014-11-07 14:53:36 +02:00
Jan-Marek Glogowski
65a00c71a5 Clarify configure GStreamer handling
Currrently --disables-gstreamer disables GStreamer API 1.0 support
and --enable-gstreamer-0-10 enables GStreamer API 0.10 support. To
build with GStreamer API 0.10 you need to --disable-gstreamer and
--enable-gstreamer-0-10, which doesn't seem logical.

But actually it's possible to build both avmedia GStreamer backends,
so this changes:

 * --disable-gstreamer to --disable-gstreamer-1-0
 * configure variables to include the GStreamer API version "1_0"
 * adapts the configure help text

Change-Id: Icffd8cfb9d80b3021e290675e7c9644c2a31fce8
Reviewed-on: https://gerrit.libreoffice.org/11912
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-11-07 11:52:38 +00:00
Stephan Bergmann
fc0d57b7af Revert "use the new OUString::fromUtf8 method"
This reverts commit 05050cdb23de586870bf479a9df5ced06828d498,
not all places that use e.g. OStringToOUString to convert potential UTF-8
are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and
some places like e.g. in codemaker are happy with the best-effort effect
of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
2014-11-06 17:24:13 +01:00
Noel Grandin
05050cdb23 use the new OUString::fromUtf8 method
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-11-06 13:51:10 +02:00
Noel Grandin
705c48d32e fdo#38835 strip out OUString globals
they are largely unnecessary these days, since our OUString infrastructure
gained optimised handling for static char constants.

Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-11-05 08:44:19 +02:00
Andrea Gelmini
c70f1545e2 Removed duplicated includes
Change-Id: I5362d997bfa086c9fb1726efcb15132a966684f6
Reviewed-on: https://gerrit.libreoffice.org/12160
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-10-31 16:18:30 +00:00
Stephan Bergmann
70ae4721b9 -Werror,-Wunused-private-field
Change-Id: I2e7c2206872dfe22c77555f3a14ea2a10c2453c2
2014-10-20 16:03:43 +02:00
Noel Grandin
67c9d05451 fdo#84938: replace TIB_ constants with enum
Change-Id: I435ce2331fb49e7ce9fe97bdfddfaef706759a84
Reviewed-on: https://gerrit.libreoffice.org/12023
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-20 07:16:46 +00:00
Stephan Bergmann
42d5cd314a More fine grained disabling of -Werror for collada headers only
Change-Id: I4f80d480e6e053038b85f6b26f74abc5921c2f38
2014-10-17 11:16:40 +02:00
Samuel Mehrbrodt
4d7806f73b Wording: 'Audio/Video' -> 'Audio or Video'
Change-Id: I9572d4c7fb5f50b869e69436302ac8c20e500392
2014-10-12 15:30:16 +02:00
Noel Grandin
8044acf2db convert SFX_CALLMODE constants to SfxCallMode enum class
and fix a couple of bugs in SC and SW where the call mode was
being passed to the hints parameter by accident

Change-Id: Ief805410b3f7035e012e229e77f92d5832430f58
Reviewed-on: https://gerrit.libreoffice.org/11916
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-11 15:14:52 +00:00
Noel Grandin
cb7ede2d99 convert vcl StateChangedType to enum class
Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f
Reviewed-on: https://gerrit.libreoffice.org/11843
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-11 15:14:32 +00:00
Stephan Bergmann
7ba99c5b0a -Werror,-Wnon-virtual-dtor
Change-Id: I8fa5c345760185baf1f0fa83c94898b2a5a86719
2014-10-06 22:58:16 +02:00