Caolán McNamara
ec689e4561
coverity#707935 Uninitialized scalar field
...
Change-Id: I7c957419b72cc97dbec819c51acb521bcd716624
2014-03-08 20:28:02 +00:00
Stephan Bergmann
361774e910
idlc: sal_Bool -> bool
...
Change-Id: Ibeed903d73eb8b3fce7b8c6021c9107437a8c813
2014-02-17 17:55:17 +01:00
Julien Nabet
a4285867cd
Typo: atribute(s) -> attribute(s)
...
Change-Id: I5434402e372c4567b2c3f96f5c175618ba3e5cfb
2014-02-06 21:32:04 +01:00
Tor Lillqvist
89420ff310
Fix spelling errror
...
Change-Id: Ie5fc19fa223942e31899408324beb2e15c1d7bef
2014-02-06 19:16:56 +02:00
Stephan Bergmann
8e71d9400b
Remove UNOIDL "array" and "union" vaporware from idlc
...
Change-Id: Iccd5a78b54620796cfde672388b70ad97d17b7a5
2014-01-30 17:53:45 +01:00
Stephan Bergmann
5061fa5345
bool improvements
...
Change-Id: I0ec9d6ed41eddbc0177c26755b621f404cfd4703
2014-01-28 20:26:26 +01:00
Caolán McNamara
5806a777b0
coverity#440064 Logically dead code
...
Change-Id: I52c9e37ca4d3238b9018264b6542a9dcebca13f6
2014-01-28 11:29:17 +00:00
Norbert Thiebaud
57f288fdcc
coverity#440240 Dereference after null check
...
Change-Id: I1ca5e4d31ab203a0ddd5e98928f5046f5fffb485
2014-01-25 03:10:52 -06:00
Jelle van der Waa
c69b6417af
fdo#72598 Remove SunStudio cruft from code base
...
Change-Id: Ia6799c852eb95d496fbc8dcfdabde62dffc263a6
Reviewed-on: https://gerrit.libreoffice.org/7066
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-12-13 09:07:07 +00:00
Stephan Bergmann
a39d07e134
Unwind occurrences of deprecated sal_sChar, sal_uChar
...
Change-Id: I76be464200d486efef9c8a7e957c310c9adae3b8
2013-11-27 12:52:32 +01:00
Stephan Bergmann
e14e4f5351
Duplicate base checking code already covers check for opt base != XInterface
...
Change-Id: Icd47d87f93641a0b24a96a4be8d3d120f0405f2d
2013-11-26 11:03:41 +01:00
Stephan Bergmann
1366e61fcb
Fix fn declaration parameter names to match fn definition
...
Change-Id: I733cd478caabc6337af9705a57ebbaeedfb92bb0
2013-11-25 17:26:18 +01:00
Stephan Bergmann
454f3f72c5
Fix unoidl sourceprovider interface base and member checks
...
...and enable tests shared with idlc
Change-Id: I422b16c9b2636835d276cc2085cb640073894c97
2013-11-25 17:26:17 +01:00
Stephan Bergmann
bd21de41e3
Fix unoidl sourceprovider polystruct argument checks
...
Change-Id: Ib7ee3188b87b9b4216214b65347e34970e1b92a5
2013-11-22 18:58:20 +01:00
Stephan Bergmann
87dc222876
Fix unoidl sourceprovider "published" checks
...
Change-Id: I93b9fcc2b20ed7a7c160a9ef3294b6e578678f53
2013-11-22 18:58:19 +01:00
Stephan Bergmann
2abcff2513
constant.tests idlc/unoidl diffs:
...
* byte only accepts singed literal values < 128 now
Change-Id: If557b5212e349fe115948f72b5558fee338db659
2013-11-22 18:58:19 +01:00
Stephan Bergmann
61c092497e
attributes.tests idlc/unoidl diffs:
...
* global exception names no longer clash with local names
* repeating the same exception in a raises spec is caught now
Change-Id: I388aae4de59bddc1c69bf4c263297d0b92b47106
2013-11-22 18:58:19 +01:00
Stephan Bergmann
c5bb39d64d
Add exectest.pl OLD-/NEW-FAILURE for deliberate idlc/unoidl diffs
...
Change-Id: I653522d8ebaac3329f368c102d14041c6b49d41d
2013-11-22 18:58:18 +01:00
Noel Grandin
2c35fff7ec
remove most use of RTL_CONSTASCII_USTRINGPARAM macro
...
This is largely unnecessary when working with OUString
Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-19 10:29:30 +02:00
Noel Grandin
e52779d2f8
remove unnecessary use of OUString constructor
...
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11 11:21:26 +02:00
Noel Grandin
0e6a2601b3
Convert code that calls OUString::getStr()[] to use the [] operator
...
This also means that this code now gets bounds checked in debug builds.
Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-11-04 08:06:10 +02:00
Noel Grandin
e2451bd729
Convert indexOf->startsWith and lastIndexOf->endsWith
...
This is both an optimisation and a cleanup.
This converts code like
aStr.indexOf("XX") == 0
to
aStr.startsWith("XX")
and converts code like
aStr.lastIndexOf("XXX") == aStr.getLength() - 3
to
aStr.endsWith("XXX")
Note that in general
aStr.lastIndexOf("X") == aStr.getLength() - 1
converts to
aStr.isEmpty() || aStr.endsWith("X")
so I used the surrounding context to determine if aStr could be empty
when modifying the code.
Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-31 08:34:21 +02:00
Thomas Arnhold
7eb42bddb3
windows: warning 4706 is disabled globally in com_MSC_defs.mk
...
So there is no need to do this locally, too.
Change-Id: Ibc623235cae07a86dfd0dbc1d7672ca4273facec
2013-10-28 01:08:27 +01:00
Noel Grandin
7a06928bcf
convert code to use OUString::endsWith
...
Convert places that call
aStr[aStr.getLength()-1] == 'x'
to use the shorter form
aStr.endsWith("x")
Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6
2013-10-23 08:29:15 +02:00
Tor Lillqvist
a7724966ab
Bin comments that claim to say why some header is included
...
They are practically always useless, often misleading or obsolete.
Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22 16:56:28 +03:00
Caolán McNamara
3656a57e88
add mode lines to new files (and idls) since last run
...
Change-Id: Id1e74f18c90e69d1a781c8f02e30dc3c005ed4fd
2013-09-22 12:21:34 +01:00
Stephan Bergmann
7794ae344c
bad search/replace
...
Change-Id: Ic14565414637a6d08aee94ad183dd852eb7875f0
2013-09-20 15:44:07 +02:00
Stephan Bergmann
aeee571501
Use tempfile instead of stdin in exectest.pl
...
...so it can easily be reused to test unoidl-write, too.
Change-Id: I4992850b44faaa152bcf1d281f2787824d6ad036
2013-09-20 15:38:02 +02:00
Caolán McNamara
5f5a981dd6
CID#705985 ensure umask for mkstemp
...
Change-Id: I861b85ac38a2881ff4b993047c1a15335308ba62
2013-09-12 13:09:04 +01:00
Caolán McNamara
af05fe65ab
CID#440614 use after free
...
a bit of guesswork here I admit
Change-Id: I774da6f585e4b81a25660b7823d6bb150630f44f
2013-09-12 13:09:03 +01:00
Stephan Bergmann
71ac97f709
Minor clean up
...
Remove an odd {1} repeat count, and remove the "."{DIGIT}+ pattern that is
already covered by the following {DIGIT}*"."{DIGIT}+ pattern.
Change-Id: If99dfe10a5e37225355472bf4deceb34c0a92eb9
2013-09-04 14:37:54 +02:00
Stephan Bergmann
2f4eeea173
Do not leave $$ uninitialized in case of error
...
Change-Id: Id28fb53a98ff164cd14f8f9dcb4ebee7a71bfd1e
2013-08-28 16:45:56 +02:00
Stephan Bergmann
284a03b4d2
parser.y: untabify, remove trailing whitespace, mode lines
...
Change-Id: Ief0109289c6dc70b51193fa5f4432efe2b48c3fb
2013-08-28 16:36:36 +02:00
Stephan Bergmann
4ef1f4ae49
downcast of address which does not point to an object of type 'AstInterface'
...
(note: object is of type 'AstTypeDef'); Clang -fsanitize=undefined
Change-Id: I1b11a7678f18557c8040af2118c1c0101913f086
2013-08-22 07:13:58 +02:00
Stephan Bergmann
d239ee4fa4
downcast of address which does not point to an object of type 'AstType'
...
(note: object is of type 'AstDeclaration'); Clang -fsanitize=undefined
Change-Id: I08eef7d3e8b298abd16b0c6d72cfb72b75190cd5
2013-08-22 07:13:58 +02:00
Luboš Luňák
64b993e046
finish deprecation of O(U)String::valueOf()
...
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.
Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00
Jelle van der Waa
caab53cf21
fdo#43460 connectivity,extensions,filter,idl,idlc: use isEmpty()
...
Change-Id: I78ba286be5aa4d731f734e5eb16adb77c686aad9
Reviewed-on: https://gerrit.libreoffice.org/4325
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-18 17:31:20 +00:00
Thomas Arnhold
4b373ef7f5
fdo#60724 change spelling error REMOVEABLE -> REMOVABLE II
...
Change-Id: I0057b9174af6a83f3fde0e27c3a91a4aeca95873
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-05-29 10:43:24 +02:00
Caolán McNamara
2ae6f9d1d2
RHEL-5 baseline ver of flex doesn't have nounistd
...
lets try this hack, if it fails revert and I'll just
manually update the baseline with a newer flex than
flex-2.5.4a-41.fc6
Change-Id: If644489e80fc4e4cdba97808af0fe4d544d08646
2013-05-23 13:57:20 +01:00
Tor Lillqvist
cb6d67c21f
Spelling "separate" (etc) correctly is hard
2013-05-15 11:14:28 +03:00
Michael Stahl
09373d4583
soltools: remove Package_inc and empty unistd.h nonsense
...
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
2013-05-10 17:56:24 +02:00
Michael Meeks
72e5d0c8fb
Move to MPLv2 license headers, with ESC decision and author's permission.
2013-04-30 13:34:06 +01:00
David Tardon
75c2c58a6c
add external for unistd.h
...
Change-Id: I728b162e21a7a2c02cb76af110cc0a01a762fdbd
2013-04-09 19:29:12 +02:00
Peter Foley
84068dae54
fix logical-op-parenthesis warning
...
Change-Id: Ib97f667c9acb644c3becb81f851ad8c7e4ff31ea
2013-04-07 09:42:18 -04:00
Luboš Luňák
ba044b1e96
remove needless forward rtl::OUString declarations
...
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07 14:23:12 +02: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
Stephan Bergmann
ce2991ee86
Forbid old-style services/singletons inheriting new-style services
...
...does not make sense. Adapted some old-style services accordingly, where the
inherited service had been changed to new-style after the fact.
Change-Id: I5f3e4ddf99160778a319062a6c84f83529ff177b
2013-04-03 11:30:06 +02:00
Stephan Bergmann
aa753f01ba
-Wunused-macros
...
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
Thomas Arnhold
488e6875e9
remove external include guards
...
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-25 19:58:16 +01:00
Stephan Bergmann
fa545023ad
Introduce HAVE_GCC_PRAGMA_DIAGNOSTIC_{MODIFY,SCOPE}
...
...replacing hard-coded GCC version checks. Those checks that guard
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
appear relevant only for GCC itself, not Clang (which used to fail the old
guards because it typically announces itself with a rather low
__GNUC__/__GNUC_MINOR__ version), see 6e67c03dc0225fc66343546b14e902b9d238b1a3
"Enable -Wnon-virtual-dtor for GCC 4.6"
Change-Id: I6bfa4d5caa6192e7a203ce829682bf6bb8d61a1b
2013-03-25 08:52:54 +01:00