Noel Grandin
71b809959b
remove unnecessary use of void in function declarations
...
ie.
void f(void);
becomes
void f();
I used the following command to make the changes:
git grep -lP '\(\s*void\s*\)' -- *.cxx \
| xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;'
and ran it for both .cxx and .hxx files.
Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-15 11:47:12 +02:00
Michael Stahl
e3efae3ebc
xmloff: also print what is duplicate
...
Change-Id: I87b5122b8f1f4e26ba16ebc1228fb77f8b7800d9
2015-04-08 17:51:36 +02:00
Markus Mohrhard
6864e3fc58
the attribute name is actually table:database-table-name
...
Change-Id: I9522529d918e143aafa6ea368fdb3fa55416d58b
Reviewed-on: https://gerrit.libreoffice.org/15176
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com >
2015-04-08 13:38:49 +00:00
Noel Grandin
4906c24387
convert SvtModuleOptions::EFactory to enum class
...
and fix issues in iterating through o3tl::enumarray
Change-Id: Ia59ef9be44d8c92c2e406fa71aa92269578e26e3
2015-04-07 13:05:34 +02:00
Noel Grandin
d1b27a1d9a
loplugin:staticmethods
...
Change-Id: Id3d6b50e07ea0850af18ab9bdadfffe0e4602aab
2015-04-07 10:24:54 +02:00
Stephan Bergmann
a0c46d2f20
Replace remaining getCppuType et al with cppu::UnoType
...
Change-Id: Ic3764caeeb2cdec397071706845bf8517c848917
2015-04-01 08:43:33 +02:00
Stephan Bergmann
c0755c8ee0
Reduce to static_cast any reinterpret_cast from void pointers
...
Change-Id: Ie25a2b8a84a146a5b988c6ef77127896d126e488
2015-03-31 13:17:54 +02:00
Stephan Bergmann
44b9b27b1a
Clean up C-style casts from pointers to void
...
Change-Id: I962bd44f2ef6204ed2ea51f79b752bd948f67209
2015-03-28 19:09:29 +01:00
Markus Mohrhard
849c1b64de
also import and export to ODF the new databar property
...
Change-Id: Ib29a0d5c9fefe15fbd0f08a5cf9600eff58cd030
2015-03-24 16:01:58 +01:00
Noel Grandin
4d4022fef2
loplugin:constantfunction: xmloff
...
Change-Id: I0ddcaada71eaa53cd7e6320c6ccaa8d8971f6df0
2015-03-24 10:31:17 +02:00
Eike Rathke
de6f165132
introduce SvXMLExport::getSaneDefaultVersion()
...
Change-Id: I1b73b4850e78f4ec0823894b93b8bc1cbadf0d0d
2015-03-22 19:29:40 +00:00
Laurent Balland-Poirier
fdf8e5aaee
tdf#30716 start Engineering notation: implement exponent-interval
...
ODF1.3 implement a new attribute for engineering notation
https://issues.oasis-open.org/browse/OFFICE-1828
This commit only add this attribute to ODF import/export.
Engineering notation is not yet available.
Treat also thousand separator with exponent-interval
Change XML_NAMESPACE_NUMBER to XML_NAMESPACE_LO_EXT for
exponent-interval
Change-Id: Ia18f9e150ca32aa9bbe133c082c3f9330e949f11
Reviewed-on: https://gerrit.libreoffice.org/14875
Reviewed-by: Eike Rathke <erack@redhat.com >
Tested-by: Eike Rathke <erack@redhat.com >
2015-03-22 15:44:55 +00:00
Michael Stahl
0777231112
V803 decreased performance postfix increment
...
These are pretty silly anyway, but apparently it complains even about
integer variables which make this rather a waste of time.
Change-Id: I15e847d33d5decd2adcab04e4f1567d3997d28a2
2015-03-13 16:23:26 +01:00
Deena Francis
7b355da685
Enhancement tdf#87972 : Cannot repeat items labels on a pivot table
...
Change-Id: I44b2521ea548b51a1b3e9b42cfa64c5f50d7798a
Reviewed-on: https://gerrit.libreoffice.org/14504
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2015-03-12 01:18:06 +00:00
Caolán McNamara
5a308b1239
V801: Decreased performance
...
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
2015-03-09 12:41:09 +00:00
Caolán McNamara
3744d8506e
boost->std
...
Change-Id: I8371b942d915f777a29ca01cd0aed674db0ca853
2015-02-17 16:24:05 +00:00
Matthew Pottage
4f7a1f5b94
fdo#75757: Remove inheritance from std::vector
...
Deprecated comphelper/sequenceasvector.hxx.
Rewritten code using it. Using instead the functions containerToSequence and
sequenceToContainer, found in include/comphelper/sequence.hxx.
One class that inherits from it (in framework/inc/stdtypes.h), and
the code using that has been left.
Signed-off-by: Michael Stahl <mstahl@redhat.com >
Conflicts:
writerfilter/source/dmapper/DomainMapper.cxx
writerfilter/source/dmapper/TblStylePrHandler.hxx
writerfilter/source/dmapper/WrapPolygonHandler.hxx
Change-Id: Ice61c94ffb052e389281aebb7cdf185134221061
2015-02-06 23:06:58 +01: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
Caolán McNamara
5e6a4591d3
LeakSanitizer: leak detected in ooo56669-1.odt
...
Change-Id: Ifdd98068762762316dbfd50fb465ed3c970f53d9
2015-01-11 20:35:03 +00:00
Noel Grandin
8447eeb192
fdo#84938: convert ERROR_ #defines to 'enum class'
...
Change-Id: Ie76bac6b91a9faa4f9ff7dbdf2b455ea9016cf72
2015-01-06 10:59:42 +02:00
Noel Grandin
c29657e0d6
fdo#84938: convert EXPORT_ #defines to 'enum class'
...
Change-Id: I2ed239fa073b5fa8fb56c1af9d4b0bac89acfacf
2015-01-06 10:59:42 +02:00
Noel Grandin
dc28e90d20
fdo#84938: convert IMPORT_ constants to 'enum class'
...
Change-Id: Idaa8f07c62b3ba93c27ca5fe286720254baac10d
2015-01-06 10:59:41 +02:00
Andrea Gelmini
3a2b1af87d
Fix simple typos.
...
Change-Id: I1fdbe47ed7a6e05d2cf20f4c296bffad4bbc6599
Reviewed-on: https://gerrit.libreoffice.org/13719
Reviewed-by: Eike Rathke <erack@redhat.com >
Tested-by: Eike Rathke <erack@redhat.com >
2015-01-02 20:23:51 +00:00
Caolán McNamara
fd1372ba8b
boost::unordered_map->std::unordered_map
...
you can get debug stl this way
Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2015-01-02 16:14:36 +00:00
Stephan Bergmann
05575c31e1
xmloff: Use appropriate OUString functions on string constants
...
Change-Id: I349e0c2575d9a5154ac7002d129a1851a3df7687
2014-12-18 14:12:39 +01:00
Stephan Bergmann
513108bd57
xmloff: Use appropriate OUString functions on string constants
...
Change-Id: Idbe6ac27a4125bd9d9acb01ac42b60396abf0c81
2014-12-12 12:25:35 +01:00
Markus Mohrhard
06344c91db
remove invalid attribute that is not read anyway
...
Change-Id: Id7770ffda49ba7bc0ebc780c67c56b81152213f7
2014-12-07 01:13:52 +01:00
Markus Mohrhard
8e417a8fed
use correct xml element name, related fdo#45266
...
Below data-pilot-groups the correct element name is
data-pilot-group-member and not data-pilot-member.
Change-Id: I41aecb7f85a881d13b3eaaa7be8de737b47ea312
2014-12-07 01:13:52 +01:00
Markus Mohrhard
a2df86642d
last inconsitently named data table value
...
Change-Id: I1a558616156f5217e309c5957967a69d81c20b8e
2014-12-07 01:13:51 +01:00
Markus Mohrhard
6c238230d4
more fixes for inconsistent naming
...
Change-Id: Iedb1b30d4e3905f884bc3bb39d4703a883e95c46
2014-12-07 01:13:51 +01:00
Markus Mohrhard
f04802e04c
use a consistent naming scheme
...
Change-Id: Ia420779fd875cb2a81b90871b26940f8a0258b4d
2014-12-07 01:13:51 +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
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
Michael Stahl
e43e830eee
xmloff: XML_DROPDOWN should be XML_DROP_DOWN
...
Change-Id: I47247289bb4367faa9a07f3568270718b5423353
2014-11-11 14:58:06 +01:00
Caolán McNamara
18995b5f7a
coverity#1250700 Uninitialized scalar field
...
Change-Id: I5db51e7864017f0d0e474ed3e253657288245850
2014-11-03 20:44:54 +00:00
Daniel Sikeler
c0a5d390e5
fdo#80403: Import baseclasses implement FastParser interfaces
...
SvXMLImportContext implements XFastContextHandler
SvXMLImport implements XFastDocumentHandler
Change-Id: Id400260af112f4a448fe469c9580f0ebacec4ab6
2014-10-31 09:22:30 +01:00
Eike Rathke
f84dac9b1f
back out even more wrong tools::Time changes, geez..
...
Change-Id: I52eb3400769999d7f554c3bdb8746f65b7990388
2014-10-08 14:35:36 +02:00
Norbert Thiebaud
64d164875f
coverity#1242759 Result is not floating-point
...
Change-Id: I3a358722279d574f96a2270b5dee84b85ddb402f
2014-10-04 09:36:28 -05:00
Noel Grandin
c625525ddc
rename SvRef::AddRef to AddFirstRef
...
to make it's intended purpose clearly distinguishable from AddNextRef
Change-Id: I5da780b48b19fd873667b648031bc394113f953b
Reviewed-on: https://gerrit.libreoffice.org/11763
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-10-03 05:25:41 +00:00
Noel Grandin
c190577f75
loplugin: cstylecast
...
Change-Id: I25b82a96aace448a8debe90c181b22976ea95414
2014-10-01 13:08:43 +02:00
Noel Grandin
fc04f76336
fdo#82577: Handle Time
...
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11
Time typedef.
Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866
Reviewed-on: https://gerrit.libreoffice.org/11684
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-10-01 07:34:23 +00:00
Stephan Bergmann
68daa8a226
xmloff: std::auto_ptr -> std::unique_ptr
...
Change-Id: I8baa6c0573af3629bacbf1891c3196c165883d9e
2014-09-30 08:13:48 +02:00
Michael Stahl
787d98f3ff
xmloff: remove yet another SunStudio workaround
...
Change-Id: Ic9ec167d921c4c5f08914476bdbdd6a31a9391c1
2014-09-12 18:38:37 +02:00
Stephan Bergmann
d4494c33e4
Avoid ODR-violating name clash
...
Change-Id: I4911dcb5d902a5b92d4c175054acd220e449459d
2014-09-11 13:06:05 +02:00
Marcos Paulo de Souza
7e2b9fa213
Remove some useless tools/debug.hxx includes
...
Also remove the tools/solar.h included from tools/debug.hxx. The include of solar.h
header was necessary in some cases because of a macro or a typedef that was needed.
Change-Id: Ia6e15d5c2571c58c9e9138b0d0a7f08ae88053c9
Reviewed-on: https://gerrit.libreoffice.org/11075
Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com >
Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com >
2014-08-22 16:33:18 -05:00
Takeshi Abe
223f761330
fdo#75757: remove inheritance to std::vector
...
typedefs just work.
Change-Id: Ib91c0d4c383b5efac1ad9b93e574dec62e8234a4
Reviewed-on: https://gerrit.libreoffice.org/10754
Reviewed-by: Michael Stahl <mstahl@redhat.com >
Tested-by: Michael Stahl <mstahl@redhat.com >
2014-08-05 21:26:50 +00:00
Noel Grandin
7e0e581c16
cleanup usage of MapUnit enum
...
some places were using the wrong enum constant, and some places were
unnnecessarily converting to sal_Int16
Change-Id: I754993533c840cd33106820d99af2dc951f26a80
2014-07-31 11:38:48 +02:00
Noel Grandin
65803ad94c
fix some dodgy FieldUnit conversions
...
the FieldUnit enum was being converted in some dodgy ways and
in some places the MapUnit enum values were being used.
Change-Id: Ic9aacb84058d1c14c3a4a79ef6676082df9a7270
2014-07-31 11:38:47 +02:00