4763 Commits

Author SHA1 Message Date
Stephan Bergmann
be9e5c5ade -Werror=unused-variable (MinGW, extensions)
Change-Id: I88113be8ff3f4dfe641463267754ee8129bc767a
2013-04-17 11:51:11 +02:00
Stephan Bergmann
10daf844f5 -Werror=unused-macros (MinGW, _WINDOWS)
...hopefully unused anyway?  In there "since the beginning."

Change-Id: Ibe61ad133dc8a546a2c70626faa5f8d2ca951150
2013-04-17 11:51:11 +02:00
Stephan Bergmann
4d7835fd6e -Werror=unused-macros (MinGW, extensions)
Change-Id: I9e442453108eddcfc6cbb9769ac224fc469f1efc
2013-04-17 11:51:11 +02:00
Michael Stahl
099e517ead extensions: remove various #undef _DEBUG
These came in on issue 10000 a decade ago.

Change-Id: Iae1995daa413e644ad869a6f02521634af8425b6
2013-04-15 15:26:31 +02:00
Thomas Arnhold
70e4329d04 fdo#60724 successfull -> successful
Change-Id: I287bef5b7f2baf5aaaab47141267ae2cadfe2451
2013-04-15 05:34:02 +02:00
Thomas Arnhold
c32b6be06b fdo#60724 correct spelling
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-04-15 05:32:37 +02:00
Thomas Arnhold
435f5e30c9 fdo#60724 correct spelling
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-15 05:10:29 +02:00
Noel Grandin
b248624126 fdo#46808, Convert frame::Frame to new style
Change-Id: I74427d1e0059808f04960c648b93245b06c20f7f
2013-04-08 13:53:04 +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
Tor Lillqvist
07c9bb1038 Drop workarounds for Mac OS X SDKs 10.4 and 10.5
Change-Id: Ifa07f9b5613b4a75c5b72178cb276b9c0b495a62
2013-04-07 03:04:31 +03:00
Eike Rathke
876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
Andras Timar
31518d8697 writing out tools/fsys.hxx (extensions)
Change-Id: I6b2132e7441be1579f6233ec56fdaf8807a60b55
Reviewed-on: https://gerrit.libreoffice.org/3119
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-04-04 16:47:02 +00:00
Thomas Arnhold
909fd7e71d remove some more macros
Change-Id: Ia93a938309d25fb9932ed92ca2b2f93bf7991927
2013-04-01 22:45:37 +02:00
Thomas Arnhold
2b7ee1db28 remove boilerplate comments
Change-Id: I44a476a9843816f70a7a4d84b8c35edeecd5daaf
2013-04-01 22:45:36 +02:00
Julien Nabet
4f511caf65 -Werror,-Wunused-macros
Change-Id: If921a3e142e44a6fb96924dc2aa454b8c8172e5a
2013-04-01 12:45:48 +02:00
Eike Rathke
5813cb01c7 certainly this was not meant to be _PC_NAME_MAX
_PC_NAME_MAX is a symbolic constant meant to be used as a pathconf()
argument, not a buffer length.

See also 2cd4e55bb36a9a3d13971b530469188e3fb59dfe

Change-Id: I94d19bd6f9f0ae501329d6a1edecad630f44b356
2013-03-30 19:39:56 +01:00
Thomas Arnhold
083092e808 OSL_FAIL -> SAL_WARN
Change-Id: I1871e5e3a319b2d5177ae4bd470046c022c14eb7
Reviewed-on: https://gerrit.libreoffice.org/3121
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-03-30 17:37:54 +00:00
Eike Rathke
5be14df244 ResMgr with LanguageTag
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
2013-03-29 14:09:01 +01:00
Stephan Bergmann
cdf0f6cf2b -Werror,-Wunused-macros
Change-Id: I4df79952596b267a0e744a2b9a11a1e128624e74
2013-03-27 12:57:15 +01:00
Stephan Bergmann
e717c5b929 -Werror,-Wunused-macros
Change-Id: I083b936a6b20f070748c281d5814d5e57dedf864
2013-03-27 12:06:09 +01:00
Stephan Bergmann
d84142a4a4 Prevent duplicate definitions
Change-Id: I4cbc231bdac93ed3dca3fb6140c5c85e9eb4339d
2013-03-27 09:51:51 +01:00
Stephan Bergmann
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
Stephan Bergmann
d684a3cad9 _USE_MATH_DEFINES is already taken care of by sal/config.h
Change-Id: Ib0dab05534c34eb407f3acee3b4a3638a36bdddc
2013-03-27 09:36:49 +01:00
Andras Timar
34173da08a remove unnecessary tools/fsys.hxx header
Change-Id: I91b457430055f45c80b9f908d7c1f70349c528ae
2013-03-25 07:04:13 -07:00
Noel Grandin
d08f360e6d fdo#46808, convert extension from deprecated interface
Change-Id: I2404637c7f1dc0a89882540581ae34a706ff86ee
2013-03-25 10:35:04 +02:00
Stephan Bergmann
d80415ec25 extensions/source/propctrlr/{form,pcr}strings.cxx no longer relevant
...since b4f8ab8881785db8e328fbfa84933eadb6bc5dd5 "extensions: get rid of no
longer needed stringdefine.hxx."

Change-Id: I0ab16071267fc08c9a2664be8630f617085fdaad
2013-03-25 08:52:56 +01:00
Stephan Bergmann
720243baae -Werror,-Wundef
Change-Id: Ia0782d64e23f67b533e57dad587951f061a7c1d2
2013-03-20 16:13:18 +01:00
Stephan Bergmann
463417f886 Assume that this shall check full string equality
...instead of prefix match as the use of
compareToAscii(RTL_CONSTASCII_STRINGPARAM(...)) would imply.

Change-Id: I266b68073ba01b9c1e91e24816b8a61f09bd60ac
2013-03-20 15:20:13 +01:00
Thomas Arnhold
11878c68c6 Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)
Now all should be gone.

Change-Id: Iaaaebfbb85535d95eab6a2043e7d5e2e845d9782
2013-03-20 15:06:48 +01:00
Stephan Bergmann
2d9ce9191d Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)
...which is a confusing overload with unexpectedly different semantics from the
one-parameter form.  In preparation of marking it as deprecated.

Change-Id: I4f176995546ae583fc570d770647ffc315eecc75
2013-03-20 13:05:35 +01:00
Luboš Luňák
52f8321c41 use #if instead of #ifdef for testing config_xxx.hxx macros
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html

Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3
2013-03-20 11:34:18 +01:00
Noel Grandin
a066525b42 fdo#46808, Convert a bunch of comphelper::ComponentContext stuff
.. to Reference<XComponentContext>
mostly in the dbaccess module, but it also affected some other
modules.

Change-Id: I09b3f6fe7a9b33498b11d98b5521b5aeeb8882be
2013-03-20 07:32:53 +02:00
Thomas Arnhold
5bb4a2ba1d further OUString cleanup
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19 14:18:10 +01:00
Thomas Arnhold
39d45390f4 removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms

Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 10:48:30 +00:00
Thomas Arnhold
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
Done with a perl regex:

s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms

Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec
Reviewed-on: https://gerrit.libreoffice.org/2832
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 09:00:26 +00:00
Thomas Arnhold
506e1efab3 trailing whitespaces
Change-Id: I3d0e2015e4c9f0ea6118fd92892022607fe4bde6
2013-03-19 01:30:44 +01:00
Miklos Vajna
35bc07513c extensions: remove RTL_CONSTASCII_STRINGPARAM in macros
Change-Id: I24cc59f4e9410e9a67a87950e7452de55122c0ce
2013-03-18 16:06:15 +01:00
Tor Lillqvist
2976b53ff8 Bin more pointless comments and ASCII graphics
Suggested Easy Hack: Replace all instances of // -------- comments
including surrounding newlines with a single newline.

Another Easy Hack, slightly harder to automate: Remove all the
pointless comments that just tell the class name right before the
declaration of that class.

Change-Id: Ia890ed613b53c5d719988697e20a983d62334123
2013-03-16 22:40:42 +02:00
Michael Stahl
38d3e115c1 vcl: make Region ctors explicit to prevent overloading desasters
Change-Id: Id36d125b4940418833bec31a4710d6cd545629e0
2013-03-13 22:29:46 +01:00
Julien Nabet
634baa8702 coverity#704143: Resource leak in object
Change-Id: I6bf9fc6e65de857d4d05df0c7be64dc6ec38dc07
Reviewed-on: https://gerrit.libreoffice.org/2686
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-12 21:20:58 +00:00
Thomas Arnhold
937b63af33 use startsWith() instead of compareToAscii()
brain damage...

Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
2013-03-11 11:07:09 +01:00
Thomas Arnhold
d2f57b6c12 fdo#43460: use isEmpty()
Change-Id: I47b35af71277fdda19767a553c960bf12164b92f
2013-03-09 20:32:40 +01:00
Thomas Arnhold
a2454a42ad fdo#43460: use isEmpty()
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
2013-03-09 20:32:39 +01:00
Stephan Bergmann
3912e47044 Work around -Werror=unused-local-typedefs from comphelper/stl_types.hxx
Change-Id: Id9f588e551b40a64bc86cae7c6d50f99659f94ab
2013-03-09 13:03:06 +01:00
Borim
a0296296fb fdo#60691 add modelines to *.src and *.hrc files
use solenv/bin/add-modulelines script for the task
and remove all UTF bom from *.src and *.hrc files

svx/source/dialog/hdft.src

Change-Id: I745d4f0fe9b05436a142a03f8512970f91c41bd4
2013-03-08 21:02:26 +00:00
Thomas Arnhold
6583305dd7 simplify compareTo (now correct)
Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-08 13:04:13 +01:00
Stephan Bergmann
3d4723f80a Revert "simplify some compareTo"
This reverts commit 19020191cbf3e3c7a7bf98d0958d86d931ae687b,

  s1.compareTo(s2, length-of-s2)

is *not* equivalent to

  s1 == s2
2013-03-08 09:03:10 +01:00
Thomas Arnhold
19020191cb simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
2013-03-08 05:42:05 +01:00
Julien Nabet
7146eaf9b3 coverity#984440: Use after free
Change-Id: Ia6d62ce5421d51fe4fc0128f60e9b39ab736276b
Reviewed-on: https://gerrit.libreoffice.org/2496
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-07 12:49:35 +00:00
Miklos Vajna
b4f8ab8881 extensions: get rid of no longer needed stringdefine.hxx
Change-Id: I53d8a164fe9333c286a04f88a0834feeecacd5ed
2013-03-07 11:14:57 +01:00