Commit graph

616 commits

Author SHA1 Message Date
Stephan Bergmann
6e67c03dc0 Enable -Wnon-virtual-dtor for GCC 4.6
...which has the necessary features to support it.

Change a lot of classes to either contain a protected non-virtual dtor
(which is backwards compatible, so even works for cppumaker-generated
UNO headers) or a public virtual one.

cppuhelper/propertysetmixin.hxx still needs to disable the warning, as
the relevant class has a non-virtual dtor but friends, which would still
cause GCC to warn.

Includes a patch for libcmis, intended to be upstreamed.
2012-03-14 13:32:02 +01:00
Caolán McNamara
ffc3c27130 Conditional jump or move depends on uninitialised value 2012-03-13 12:58:35 +00:00
Miklos Vajna
6f04bf5e90 SvxULSpaceItem: implement contextual spacing 2012-03-12 18:42:31 +01:00
Bartosz Kosiorek
f2d0fcc26b Replace VARARR_SORT with std 2012-03-12 15:58:54 +04:00
Matúš Kukan
84b3f7b345 gbuild: get rid of realpath in gb_Foo_set_include 2012-03-10 21:23:20 +01:00
Caolán McNamara
80b0a3a7b6 fold i18npaper into i18nutil
It's too small to justify standalone existence.

We can accumulate i18n things we link to directly into
i18nutil and rework i18npool uno implementions in terms
of thin wrappers over i18nutil and prefer linking to
i18nutil internally and leave the uno forwarders for
use by external components and scripting
2012-03-08 12:02:38 +00:00
Caolán McNamara
18a48b7489 drop dead makefile.mk's 2012-03-08 12:02:38 +00:00
Caolán McNamara
bbc6d8506d remove various unused methods and source files 2012-03-07 11:06:45 +00:00
Tor Lillqvist
947a51f5fe WaE: equality comparison with extraneous parentheses 2012-03-03 01:16:33 +02:00
Ivan Timofeev
c1cf8dac6d there was the object comparison, not the pointer comparison 2012-03-02 18:46:51 +04:00
Ivan Timofeev
0ecb2bd92a remove traces of SvxFontTable 2012-03-02 18:46:50 +04:00
Ivan Timofeev
9e137b29e1 fix memory leak 2012-03-02 18:46:50 +04:00
Tor Lillqvist
2c1868bb28 WaE: use of logical '&&' with constant operand
Surely a bit test is what is intended here.
2012-03-02 12:09:29 +02:00
Stephan Bergmann
f50f7368ab More IMPL_LINK_NOARG fixes 2012-03-01 23:55:47 +01:00
Stephan Bergmann
bd205223ec New IMPL_LINK_NOARG to work around SAL_UNUSED_PARAMETER problem
...see ebe26f72e9 "WaE: 'unused' attribute ignored when parsing type"
for the problem.
2012-03-01 18:00:32 +01:00
Noel Grandin
a0cd57b926 Remove SvxFontTable and use std::vector instead
In removing tools/table.hxx usage, remove SvxFontTable and
convert to std::vector<SvxFontItem*> because it was only
being used as a temporary list, not a map.
2012-03-01 17:03:34 +02:00
Caolán McNamara
ac08d3f696 we don't want any of these to be streamed out/in as 64bit values 2012-02-28 16:59:01 +00:00
Szabolcs Dezsi
2b179ca174 Removed unused code 2012-02-27 11:23:51 +00:00
Thomas Arnhold
a3fccd27de unusedcode.easy: remove unused code 2012-02-24 05:33:53 +01:00
Caolán McNamara
cfcfd8848e make editeng ByteString free 2012-02-23 20:45:03 +00:00
Caolán McNamara
2c7a532b7e WaE: nWidth might be unused uninitialized 2012-02-23 13:27:15 +00:00
Cédric Bosdonnat
e3e7623bf6 fdo#45560: Fixed docx textbox borders style and width import 2012-02-23 13:56:24 +01:00
Ivan Timofeev
46fd2a3bf2 use a for loop 2012-02-21 20:05:23 +04:00
Noel Grandin
a4aa96be3a convert svxrtf.hxx in editeng module from table.hxx to std::map 2012-02-21 20:05:23 +04:00
Elton Chung
d30b4e9fb6 Get rid of size() == 0 2012-02-19 17:07:46 +04:00
Thomas Arnhold
949214fab8 unusedeasy.code: remove SvxFont::DrawText 2012-02-18 21:32:58 +01:00
Elton Chung
78e9ba6feb Remove unused code 2012-02-18 09:34:48 +00:00
Mariusz Dykierek
51b3eb3a39 clean up logic 2012-02-17 15:25:28 +00:00
Ivan Timofeev
843eafc765 tweak "Convert tools/table.hxx in editeng/forbiddencharacterstable.hxx..."
* remove 'const' from GetForbiddenCharacters
* CharInfoMap -> Map
* pInf -> pForbiddenCharacters
* remove 'inline' from the function defined within the class definition
* some code simplifications
2012-02-15 21:31:29 +04:00
Noel Grandin
9d4b0c25a5 Convert tools/table.hxx in editeng/forbiddencharacterstable.hxx to std::map 2012-02-15 21:31:29 +04:00
Santiago Martinez
1dc612970f Remove unused code. 2012-02-14 16:32:01 +00:00
Elton Chung
abc235e73e Remove unused code 2012-02-13 16:08:52 +00:00
Matúš Kukan
4b30ec9def fdo#39491 -I$(OUTDIR)/inc is set in SOLARINC 2012-02-10 21:41:45 +01:00
Josh Heidenreich
64e1ae0f55 Added READMEs for modules which used to be in libs-core 2012-02-08 06:37:16 +01:00
Norbert Thiebaud
c857dff7fc switch to include-based build rather than sourced-based build 2012-02-05 19:34:05 -06:00
Ivan Timofeev
1c85118414 fix debug build 2012-02-05 22:02:12 +04:00
Michael Stahl
874f2e53b2 WrongList::TextInserted: fix STL crash
vector iterators and insert don't mix well
(regression from dfbf0cabfa)
2012-02-03 14:20:13 +01:00
Michael Stahl
aa2333374d editeng: convert some DBG_ASSERTs 2012-02-03 14:20:12 +01:00
Eike Rathke
971f826a96 resolved fdo#42784 BorderLine with only InnerWidth set does not work 2012-02-02 19:11:37 +01:00
Julien Nabet
428c9d516d Some cppcheck cleaning 2012-02-01 21:02:32 +01:00
Caolán McNamara
6b6bbe539b SWAPLONG->OSL_SWAPDWORD 2012-01-31 20:23:46 +00:00
Noel Grandin
61451fec9b fdo#44981 - remove obsolete SWAPLONG macros 2012-01-30 13:18:38 +00:00
Caolán McNamara
bbc94edb9a refactor ConvertLineEnd 2012-01-30 13:18:38 +00:00
Michael Stahl
4512de034a SvxBorderLine::GuessLinesWidths: use SAL_N_ELEMENTS 2012-01-27 23:49:18 +01:00
Michael Stahl
e549f52f16 fdo#38542: SvxBorderLine::GuessLinesWidths:
Importing style:border-line-width="0.002cm 0.088cm 0.141cm" (which older
OOo/LO apparently could write) fails, because GuessLinesWidths can't find
a matching style (result: standard "double" border, 3 equal width parts).
Try to create a custom BorderWidthImpl of type DOUBLE instead, that
preserves the individual widths.
2012-01-27 09:37:55 +01:00
Stephan Bergmann
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
Keith McRae
987eae381d fdo#39428 Remove/audit SvStream operator>>/<<(long)
Replaced calls to operator<<(long) with sal::static_int_cast<sal_Int32>
Replaced calls to operator>>(long) with operator>>(sal_Int32)
2012-01-18 22:56:13 -05:00
Marcel Metz
2a566b1775 Replaced SAL_INFO with SAL_WARN were applicable. 2012-01-17 23:27:44 +01:00
Marcel Metz
a18123fb97 Replaced DBG_ERRORFILE with SAL_INFO. 2012-01-16 12:51:33 +01:00
Caolán McNamara
4abfd463ed force users of WriteByteStringLine to explictly denote encoding 2012-01-16 10:21:55 +00:00