Commit Graph

44 Commits

Author SHA1 Message Date
3af0114a29 Introduce O[U]String::toUInt32
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39
"Handle oveflow in O(U)String::toInt() functions" reduces values in the range
(SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied
on getting a correct (unsigned) value for the whole input range ["0" ..
"FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3
"Revert overflow checks in O[U]String::toInt{32,64} again").

Audited all uses of toInt32/64 with non-decimal radix.  (There is still a TODO
comment in oox/source/helper/attributelist.cxx, and
stoc/source/typeconv/convert.cxx will still need some love and test code.)

Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-13 17:08:36 +02:00
e2e2cc6114 remove usage of RTL_CONSTASCII_USTRINGPARAM
Mechanical removal of usage together with OUString ctor, done
by compiler plugin.

Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-06 16:51:45 +02:00
e8ff469da5 Remove any remaining remnants of unused component_canUnload feature
Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
2013-04-19 16:52:03 +02:00
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
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
3a53ddf0a2 re-base on ALv2 code. 2012-06-29 11:13:58 +01:00
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
d2097ad456 gbuildize stoc 2012-03-12 11:42:50 +01:00
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
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
36f155dda1 remove include of pch header from stoc 2011-11-27 13:23:37 -06:00
932ebc493d createFromAscii -> RTL_CONSTASCII_USTRINGPARAM 2011-06-13 11:44:37 +01:00
c1abc2ec9e fix up 2011-06-01 15:35:10 +01:00
480ab8a2b3 Remove "using namespace ::rtl" 2011-03-03 22:48:57 +01:00
a715e1b3d0 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:04:31 +02:00
7c80db2eb3 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
8b67886409 INTEGRATION: CWS changefileheader (1.10.10); FILE MERGED
2008/03/31 07:26:13 rt 1.10.10.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:57:29 +00:00
bc6b9db9c1 INTEGRATION: CWS changefileheader (1.17.12); FILE MERGED
2008/03/31 07:26:13 rt 1.17.12.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:57:13 +00:00
1aec534f8c INTEGRATION: CWS sb76 (1.9.56); FILE MERGED
2007/08/31 11:01:56 sb 1.9.56.1: #i77885# Consolidate stoc libraries; patch by jnavrati.
2007-09-27 12:05:37 +00:00
8da9218723 INTEGRATION: CWS sb76 (1.16.46); FILE MERGED
2007/08/31 11:01:56 sb 1.16.46.1: #i77885# Consolidate stoc libraries; patch by jnavrati.
2007-09-27 12:05:25 +00:00
9ddf33e08f INTEGRATION: CWS pchfix02 (1.15.8); FILE MERGED
2006/09/01 17:41:18 kaib 1.15.8.1: #i68856# Added header markers and pch files
2006-09-16 16:37:55 +00:00
65e94df5ca INTEGRATION: CWS warningfixes02 (1.14.2); FILE MERGED
2006/06/30 11:56:16 sb 1.14.2.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box.
2006-07-19 15:24:27 +00:00
cffbc450e7 INTEGRATION: CWS warnings01 (1.12.156); FILE MERGED
2005/10/31 14:38:13 sb 1.12.156.3: #i53898# Made code warning-free.
2005/09/22 20:00:03 sb 1.12.156.2: RESYNC: (1.12-1.13); FILE MERGED
2005/09/19 15:24:04 sb 1.12.156.1: #i53898# Made code warning-free.
2006-06-19 23:06:47 +00:00
5daa579545 INTEGRATION: CWS ause043 (1.8.10); FILE MERGED
2005/11/09 13:33:21 hjs 1.8.10.1: #i56702# remove unused variable
2006-05-24 12:53:12 +00:00
23287b7ecb INTEGRATION: CWS ooo19126 (1.7.152); FILE MERGED
2005/09/05 17:11:21 rt 1.7.152.1: #i54170# Change license header: remove SISSL
2005-09-08 07:15:14 +00:00
bc24d38b8b INTEGRATION: CWS ooo19126 (1.12.162); FILE MERGED
2005/09/05 17:11:21 rt 1.12.162.1: #i54170# Change license header: remove SISSL
2005-09-08 07:14:54 +00:00
1689fafc50 INTEGRATION: CWS uno2 (1.6.60); FILE MERGED
2003/04/08 13:56:26 dbo 1.6.60.1: #107991# UNO shared library component renaming
2003-04-23 15:13:45 +00:00
414c097c65 MWS_SRX644: migrate branch mws_srx644 -> HEAD 2003-03-27 11:01:26 +00:00
f2b0299972 #97095# MS Visual C++ unsigned __int64 to double missing 2002-07-05 11:01:09 +00:00
8cf677ebd2 #97095# fixed linux cond expr 2002-07-05 09:42:07 +00:00
e917539e5f #97095# fixed incomplete enum types; byte->string 2002-06-07 15:46:12 +00:00
321571ba16 #67468# now compiles also on windows 2001-06-29 15:44:02 +00:00
a242da96dc #67468# Added unloading and context support 2001-06-22 15:21:02 +00:00
83a4deb5c4 rtl string api changes 2001-05-11 10:37:39 +00:00
1f63800f14 fixed string conv problems 2001-03-19 11:04:36 +00:00
4038b72427 OSL_ENSHURE replaced by OSL_ENSURE 2001-03-12 14:38:06 +00:00
a03ddd50b9 Removed compiling of staticmb*.cxx files for Mac OS X now that we have automated this process 2001-03-02 06:21:44 +00:00
b7198553a1 convertToSimpleType: when converting to string, handle SHORT, UNSIDNED_SHORT, UNSIGNED_LONG spearately 2001-02-13 14:33:53 +00:00
033fc33fe6 Merge NetBSD changes by Michael Rauch from OO614B to HEAD. 2001-02-02 13:26:41 +00:00
11dd8728f2 #82482# Wrong upper boundary check corrected 2000-12-20 16:16:04 +00:00
80d5b18976 changes for library description 2000-10-30 13:20:44 +00:00
93056047ce add staticmbtypeconv.cxx for macx 2000-10-10 04:48:53 +00:00
353607df2e #79269# convert to hyper doesn't use toDouble any longer 2000-10-09 13:21:27 +00:00
b525a3115f initial import 2000-09-18 14:29:57 +00:00