710f41b7ae
Clean String and sal_Bool in tools
...
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655
Reviewed-on: https://gerrit.libreoffice.org/4627
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com >
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com >
2013-06-30 04:58:49 +00:00
ba0a57702c
remove OUString wrap for string literals
...
For some functions and all kinds of Exceptions.
CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException
createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService
bash command:
for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
| cut -d ':' -f1 | sort -u
| xargs sed -i
-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
-e "s/\($i.*\)\"+ /\1\" + /g";
done
Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Thomas Arnhold <thomas@arnhold.org >
Tested-by: Thomas Arnhold <thomas@arnhold.org >
2013-06-29 21:52:54 +00:00
318f2b64cc
remove some createFromAscii usage
...
there are a lot more of them:
git grep 'createFromAscii[^)]*"'
Change-Id: Ibc2e9cae208d8b9c91667bb3b177c6bd6d3a9424
2013-06-29 16:23:23 +02:00
6391e823dc
Replace buggy pgsql-sdbc datetime functions with dbtools equivalents
...
In particular, the string2time function segfaults when called on an empty string
(unconditionally tries to access the n-th character without checking whether the string is that long)
this happens in particular when reading a column of type TIME with a NULL value
Change-Id: I302044f67a92fe20685ce677ba3affdb9b44cb53
2013-06-27 14:37:13 +02:00
1b0a43142b
new dbtools::DBTypeConversion::toTimeStringS for time in second precision
...
(no fractional second)
Change-Id: I8bf448783b24fceae9a750f40887d6296999b203
2013-06-27 09:29:33 +02:00
83dc5c0758
fdo#66216 JDBC no fractional second in time format
...
fractional second allowed in timestamp. But not in time. Don't ask why.
Change-Id: I5415889ab4cf4835b8b0db7363b7d9eb0a332393
2013-06-27 09:29:32 +02:00
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
dd3f8fbaff
fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
...
- replaced RTL_CONTEXT_ with SAL_INFO
- replace OSL_* with SAL_*
Change-Id: If89af70767c3fdc4b1d0cb5e51033ca98583bc5d
Reviewed-on: https://gerrit.libreoffice.org/4286
Reviewed-by: Noel Power <noel.power@suse.com >
Tested-by: Noel Power <noel.power@suse.com >
2013-06-17 15:55:21 +00:00
0a52587c7a
cppcheck: fix uninitMemberVar for postgresql part
...
Change-Id: Id37b961ff04ec9cebcc9d35434ccfdff0b512235
2013-06-16 21:39:39 +02:00
7275a05167
loplugin warnings
...
Change-Id: I23ce5efe4ba20e1da5ffd169a2f3140a73dd035f
2013-06-15 09:22:09 +02:00
3222f7b993
cppcheck: reduce scope
...
Change-Id: Icd0c258e83631de2356503c725139fac2035fb0b
2013-06-12 22:54:20 +02:00
4e5b78d6a5
cppcheck: fix Variable "hr" reassignment
...
Change-Id: Iafaac91fe3783118817d40f3831e5ca039be64e0
2013-06-12 22:53:09 +02:00
95c0d568fd
use uno::Reference#clear() method...
...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-06-05 08:13:23 +02:00
dcbaf7c253
remove unused componentcontext.hxx includes
...
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-05 08:13:21 +02:00
1e4422a4b4
re-base on ALv2 code. Includes:
...
Patches contributed by Mathias Bauer
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394707
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1397337
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1396797
Patches contributed by Andre Fischer
Fixed getcsym.awk to handle #-comments that contain special regexp chars.
http://svn.apache.org/viewvc?view=revision&revision=1230971
118778: Added ADDITIONAL_REPOSITORIES environment variable and its
automatic setup in configure.
http://svn.apache.org/viewvc?view=revision&revision=1232004
118160: Added external CoinMP library.
http://svn.apache.org/viewvc?view=revision&revision=1233909
Patches contributed by Herbert Duerr
#i119168# use generic LICENSE file for langpacks and sdks
http://svn.apache.org/viewvc?view=revision&revision=1310178
macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars
http://svn.apache.org/viewvc?view=revision&revision=1183367
allow gbuild with empty sysroot on linux
http://svn.apache.org/viewvc?view=revision&revision=1179186
Patches contributed by Ingo Schmidt
native373: #164472# improvements for msi database
http://svn.apache.org/viewvc?view=revision&revision=1167540
http://svn.apache.org/viewvc?view=revision&revision=1167539
Patches contributed by Jurgen Schmidt
adapt setup package scripts to handle special DS_Store file for
developer snapshot builds
http://svn.apache.org/viewvc?view=revision&revision=1232430
imported patch extensions_i117681.patch
http://svn.apache.org/viewvc?view=revision&revision=1172102
Patches contributed by Michael Stahl
gbuild: RepositoryFixes.mk should be optional
http://svn.apache.org/viewvc?view=revision&revision=1166123
xslt filter: remove the FLA horror
wordml import filter: replace FLA usage with plain XSLT
http://svn.apache.org/viewvc?view=revision&revision=1363727
Patch contributed by Oliver-Rainer Wittmann
i#88652: applied patch, remove unicows deps
http://svn.apache.org/viewvc?view=revision&revision=1177585
Remove lots of OS2 conditionals, re-extract Rhino Java, unwind
cppunit pieces, cleanup Mac image bits, remove coin-mp and
re-package lpsolve, Oxygen & Crystal, fixup qstart bits, expand
MPLv2 subset checking.
Change-Id: Iad5c8a76399620b892671633c0d8c29996db3564
2013-06-03 11:41:36 +01:00
526fbddf69
connectivity: make MSVC happy with pairFirstLess
...
MSVC 2008 with _DEBUG calls this with parameters in wrong order so needs
more overloads.
Change-Id: I334fd93bea278dc147b3b575d079cacf02de5e87
2013-05-29 23:52:13 +02:00
ac66cb60b0
Ensure socket or pipe are passed to the native driver
...
(cherry picked from commit ad1186563ea12ce63dfdf738c332bf712084f633)
Change-Id: Ib556732abb42dd3371331368c2b2eb717d505461
2013-05-29 12:58:47 +01:00
7298a2b0c7
fdo#46808, Convert XMultiServiceFactory to XComponentContext
...
Change-Id: I3a74d4edaa3ff3c2498c3db2720b0e4e5305c2e4
2013-05-22 15:20:03 +02:00
48b29cd42b
flat db driver: reorganise OFlatTable
...
Change-Id: I5d522abdffaf1aeb4ae0996d3a19acdcca474f95
2013-05-19 14:05:24 +02:00
72ced5a1e5
flat file db driver: clean up seekRow
...
Change-Id: Ib9057944c120522230d5ed00cf5d152e5f0b4726
2013-05-19 14:05:23 +02:00
db6ab9f8f1
remove unused & suspicious method
...
calls m_pTable->seekRow with m_nRowPos instead of m_nFilePos...
Change-Id: Ibf9b4da3dffdd75402deb9e7a371a312e0464613
2013-05-19 14:05:18 +02:00
6b946f2283
fdo#47951 flat text table: update m_nRowPos when moving by bookmark
...
Change-Id: Iac154020b4b6309f92b1f68fa5bf79611dfcc91b
2013-05-19 14:05:17 +02:00
dab009a4fc
use safer/more explicit C++ casts
...
Especially in debug mode.
Change-Id: I431851bd46da0f46fdb5cfaa19c76cb139823fa8
2013-05-19 14:05:17 +02:00
4f214b2b42
connectivity::file::OResultSet remove totally unused data member
...
Change-Id: I5c4b2d72b600c8ce9de070dc82bf489d66144342
2013-05-19 14:05:16 +02:00
cb6d67c21f
Spelling "separate" (etc) correctly is hard
2013-05-15 11:14:28 +03:00
2c46fa1299
fdo#64528 macab URL is sdbc:address:macab, not sdbc:address:macab:*
...
Change-Id: I1e5721815c961e14484f78f449910908ed48aeb1
2013-05-13 14:34:29 +02:00
615d8be81a
coverity#982277: reosurce leak
...
Change-Id: I5d2b99645faf18e8af9bc0f0b4bff210f9ee8743
2013-05-09 23:29:45 +02:00
cb33531fc4
fix typo
2013-05-06 19:21:07 +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
b777604017
drop pointless build of a resource file
...
Change-Id: Ic3d554bbcc8bdbad85c868c06d451bd6f12def54
2013-05-05 09:32:34 +02:00
3e52762c5a
Move to MPLv2 license headers, with ESC decision and author's permission.
...
Change-Id: I9f1102d4f0e189a048d8fccfe9cae246c0136311
2013-05-02 12:49:20 +01:00
72e5d0c8fb
Move to MPLv2 license headers, with ESC decision and author's permission.
2013-04-30 13:34:06 +01:00
8ad743ca8d
pgsql-sdbc: conninfo keywords as static table instead of series of "else if"
...
New keywords can now simply be added to a static array rather than
adding a new "else if" blocks for each keyword.
Change-Id: Ib581b3e834a57e0dfa9d139bcb4ae7a0a52a5472
2013-04-29 10:20:32 +02:00
0f200cc30e
fdo#63154: Change Min/Max/Abs for std::min/max/abs
...
Now all these usages were removed from LO.
Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6
Reviewed-on: https://gerrit.libreoffice.org/3326
Reviewed-by: David Tardon <dtardon@redhat.com >
Tested-by: David Tardon <dtardon@redhat.com >
2013-04-20 11:09:54 +00:00
e8ff469da5
Remove any remaining remnants of unused component_canUnload feature
...
Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
2013-04-19 16:52:03 +02:00
eeab70fd53
-Werror,-Wformat
...
Change-Id: I10eb204e63dee480a54494f5869f1f1b2e4bfc92
2013-04-19 08:03:09 +02:00
81cf58f191
date/time IDL datatypes incompatible change: fixup
...
Change-Id: Ib750a009e49e19d63f8b6df85947a7b5c9b75bcf
2013-04-19 07:17:33 +02:00
f805afcf4c
date/time IDL datatypes incompatible change: fixup
...
Change-Id: Icb5ffe659e0b6eebacf7788a7f66ce454a00b524
2013-04-18 23:00:32 +02:00
9830fd36db
date/time IDL datatypes incompatible change
...
- nanosecond precision
- signed (allowed negative) year
Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.
Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18 21:34:46 +02:00
cd79d51420
prefix all component_getFactory methods
...
Change-Id: I954176fdab9103125444dd2fb397673406f7aff9
2013-04-15 09:12:08 -04:00
a63c9bac6a
fdo#61142 mixup between size and length
...
Change-Id: Ia2903d5139378e97bb2e8d00ccb2c213d3e1dee6
2013-04-15 01:29:03 +02:00
fe294e9208
pgsql-sdbc: set tablename even if we do not know the schema
...
Change-Id: I74c04e1262cc413696a12aca9af603beded7b07f
2013-04-10 18:12:09 +02:00
b8361945d6
pgsql-sdbc: ResultSetMetaData::getTableName return tablename (without schema)
...
Change-Id: I319ba91045fa43922d7b694a4f13322295590c81
2013-04-10 18:12:08 +02:00
e816271818
connectivty: postgres: fix a bunch of empty for body warnings
...
Change-Id: Idd91616e43842142450c94ac8a61f4f29f4eb1b7
2013-04-10 16:21:41 +02:00
ba044b1e96
remove needless forward rtl::OUString declarations
...
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07 14:23:12 +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
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
3064d2214e
Fix debug build
...
Change-Id: I1a4db30f4cc33ee99b48a25db6e6fcd600d00ffd
Reviewed-on: https://gerrit.libreoffice.org/3168
Reviewed-by: Andras Timar <atimar@suse.com >
Tested-by: Andras Timar <atimar@suse.com >
(cherry picked from commit c976cd58b7bee71ea43dd1f4aad3b1c1fcb32516)
2013-04-02 12:54:42 +02:00
2b7ee1db28
remove boilerplate comments
...
Change-Id: I44a476a9843816f70a7a4d84b8c35edeecd5daaf
2013-04-01 22:45:36 +02:00
5ce754ad4b
coverity#982290 Logically dead code
...
Change-Id: Ia684369faa5fd0eb854d204ac7e8dbf74f032606
Reviewed-on: https://gerrit.libreoffice.org/3067
Reviewed-by: Christoph Brill <egore911@gmail.com >
Reviewed-by: Petr Mladek <pmladek@suse.cz >
Tested-by: Petr Mladek <pmladek@suse.cz >
2013-03-28 13:14:36 +00:00