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
c99b97d306
datetime.cxx: remove duplicative unused operators
...
Change-Id: I73aae52cc482f87fb27c35c5c0d9f7b378760906
2013-06-28 17:38:16 +02:00
667ef4356a
fix crash when parsing empty string
...
the parsing of the hours would succeed, but the parsing of the minutes would access past-the-end of the string.
Probably same crash when parsing HH or HHMM formats.
Change-Id: I248810e5c4c425186f33e573634883263caff312
2013-06-27 19:52:43 +02:00
448fa131b2
Fix fdo#52204 add new feature ignore diacritics in search for CTL
...
Change-Id: Ie9044a35003217545bacea214ef59047bff3b8b1
2013-06-21 11:14:17 +02:00
6f36e70795
-Werror,-Wdeprecated-register
...
Change-Id: Idacccba79c1c2973e5f20804e628f6043988888d
2013-06-20 16:38:40 +02:00
3d4609d944
Some String -> OUString
...
...to get rid of having to additionally link some libs against tl from
27c6434fccfec5fb4184c1efa2057595c8716fad "fdo#46808, Replace usage of
SpecialConfigManager" again.
Change-Id: Ica161a4f0da320858b6a3901a5a6907737c779f4
2013-06-05 17:29:13 +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
8079f40743
Make use of IsStarSymbol()
...
Change-Id: I7a2e3a6f11bbaaaff50e8163e4ce3e2583b1d03c
Reviewed-on: https://gerrit.libreoffice.org/4077
Reviewed-by: Luboš Luňák <l.lunak@suse.cz >
Tested-by: Luboš Luňák <l.lunak@suse.cz >
2013-05-30 15:54:47 +00:00
a0f85534a7
be case-insensitive for open/starsymbol comparison
...
Change-Id: I7a342c809a723f5f9c03271c6145d9c367cea6de
Reviewed-on: https://gerrit.libreoffice.org/4015
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2013-05-27 15:42:33 +00:00
13635ca1ec
The MT Extra font mapping is incomplete
...
Many points are missing. Replace entire table with the mapping provided by
the original creator. Note that point 0xe7 ("Apple Logo") is not in unicode
so no mapping is provided for that.
http://www.dessci.com/en/support/mathtype/tech/encodings/mtextra.htm
Change-Id: I05acd36772ae6432614ff3b284e43b86049bed66
Reviewed-on: https://gerrit.libreoffice.org/4036
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2013-05-27 12:09:10 +00:00
6a043e9c0a
Use the new type-checking Reference constructor to reduce code noise
...
Also create a Clang compiler plugin to detect such cases.
Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752
Reviewed-on: https://gerrit.libreoffice.org/4001
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2013-05-22 10:44:29 +00:00
cb6d67c21f
Spelling "separate" (etc) correctly is hard
2013-05-15 11:14:28 +03:00
ef8a4af30a
WaE: 'bFrac' may be used uninitialized in this function
...
Actually it isn't (I think), but let's silence the compiler.
Thanks to mjw for noticing and pointing out this warning on IRC.
Change-Id: I78885a6dac0c3e27867215d99f6e01d429d086ca
2013-05-13 12:49:28 +03:00
86c1ebc1ef
fdo#46808, Convert util::PathSettings service to new style
...
Change-Id: I302be46b46518e1e872771e1c8a0647f7c330b30
2013-05-13 09:38:01 +02:00
228659f0a6
coverity#1019431: use of freed memory
2013-05-08 21:01:06 +02:00
62badf3828
Move to MPLv2 license headers, with ESC decision and author's permission.
2013-04-22 09:37:38 +01: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
c32b6be06b
fdo#60724 correct spelling
...
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-04-15 05:32:37 +02:00
435f5e30c9
fdo#60724 correct spelling
...
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-15 05:10:29 +02:00
60fbefc615
fdo#60724 informations -> information
...
Change-Id: Ifd34ebfc7fe01b4a470eb072597dd3ec97c97863
2013-04-15 04:49:39 +02:00
0ed6aa49a8
SvtPathOptions with LanguageTag
...
Change-Id: I33f43c6d0249a6681d451a4be8c5548da4987f9c
2013-04-10 21:26:22 +02:00
a6f169433a
use language tags
...
Change-Id: I0e0e6f05f69a173d230a32bc1c39a1bf18fc052f
2013-04-10 21:10:23 +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
55664c9bd2
unotools: remove some unused items
...
Change-Id: I95bcac6a3ff8cf4644c9d1596c75cac2d9cd94fe
Reviewed-on: https://gerrit.libreoffice.org/3191
Reviewed-by: Miklos Vajna <vmiklos@suse.cz >
Tested-by: Miklos Vajna <vmiklos@suse.cz >
2013-04-05 08:35:33 +00:00
31fedbe9f7
Remove SvtInternalOptions
...
* only Get/SetCurrentTempURL were used, but only for compatibility reasons,
to remove old temporary directories (before 2001). Those should be gone
today.
* MailUIEnabled was false in the xcu file.
* SID_MAIL_SENDDOC* are handled some lines further.
Change-Id: I482719b0de9df0a77c2fef0bf25ae1fb68926375
Reviewed-on: https://gerrit.libreoffice.org/3180
Reviewed-by: Miklos Vajna <vmiklos@suse.cz >
Tested-by: Miklos Vajna <vmiklos@suse.cz >
2013-04-05 08:24:46 +00:00
a808497dbb
drop prefix from ::css
...
as css is already ::com::sun::star
Change-Id: I86b43843e4b74f990b6e05dee37184a002072d12
2013-04-02 09:01:37 +02:00
2b7ee1db28
remove boilerplate comments
...
Change-Id: I44a476a9843816f70a7a4d84b8c35edeecd5daaf
2013-04-01 22:45:36 +02:00
049ce78144
remove local css definitions
...
follow-up of 66a175834c39ccde9475eac3adb72a843110d01f
Change-Id: I1c495041ccc4db4dd9554d49b6324e989fa46c60
2013-03-30 00:56:42 +01:00
5f96fa16cb
FIXME-BCP47
...
Change-Id: Id328608bcab49513d044c5029f87c5d1c21cedd2
2013-03-29 14:09:00 +01:00
3e8a0c2d11
-Werror=unused-macros
...
Change-Id: I2fce1d0c7136840843b78ae301e8c4147d504272
2013-03-27 14:55:38 +01:00
4e907bc366
Replace String with OUString in RecodeString
...
Change-Id: I987f738d1cd7d640a253f3cd31864290b6d763bf
Reviewed-on: https://gerrit.libreoffice.org/2919
Reviewed-by: Eike Rathke <erack@redhat.com >
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org >
Tested-by: Fridrich Strba <fridrich@documentfoundation.org >
2013-03-26 12:43:22 +00:00
002a0d91e4
Fix spelling errors and typos: 'unkown' change to 'unknown'
...
Change-Id: Ia3ff77d2b99c9ef6c4c9b510bb30f349592c0b94
Reviewed-on: https://gerrit.libreoffice.org/3030
Reviewed-by: Thorsten Behrens <tbehrens@suse.com >
Tested-by: Thorsten Behrens <tbehrens@suse.com >
2013-03-25 14:12:42 +00:00
9d548d56cf
Replace String with OUString (unotools)
...
Change-Id: I9a0677cb36805d0a27514824c937901f73fee1c8
Reviewed-on: https://gerrit.libreoffice.org/2864
Reviewed-by: Noel Power <noel.power@suse.com >
Tested-by: Noel Power <noel.power@suse.com >
2013-03-20 12:10:09 +00:00
b2f8318dbd
simplify OUString assignments
...
Change-Id: Ieffd80aa84c9a041785bb81b3a904a32d00cb2bb
Reviewed-on: https://gerrit.libreoffice.org/2863
Reviewed-by: Noel Power <noel.power@suse.com >
Tested-by: Noel Power <noel.power@suse.com >
2013-03-20 10:28:58 +00:00
a2d33e2d4c
compareToAscii(RTL_CONSTASCII_STRINGPARAM(s)) != compareTo(s)
...
...broken with 407b51db1831bb2cf21def88241323e35c612005 "Remove
RTL_CONSTASCII_STRINGPARAM (unotools)."
Change-Id: Id810c157a6e10380d28e4d6e85f908dc79cf0057
2013-03-19 14:45:53 +01:00
61e0ce089d
DBG_ASSERT -> SAL_WARN
...
Change-Id: I29a13ac9631027d7c527c3b395d4a887c290acc7
2013-03-19 14:45:53 +01:00
3968f5e874
Simply obtain theMacroExpander on demand
...
Change-Id: I919c8f5c26d1c879dd77e691babaa4eb7f608c35
2013-03-19 14:45:53 +01:00
f92a592705
Polishing 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10
...
Change-Id: I73334fca8429dc0ad4250ce638027fa52245dec4
Reviewed-on: https://gerrit.libreoffice.org/2676
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org >
Tested-by: Fridrich Strba <fridrich@documentfoundation.org >
2013-03-12 23:12:14 +00:00
32ac07a929
Remove RTL_CONSTASCII_STRINGPARAM (unotools)
...
Change-Id: Id6f9a357431a636c5982964452a0f067e884da96
2013-03-12 21:02:26 +01:00
a548924aec
tempfile: Creating tempfiles in a given folder is not used
...
It's always the case, that the default temp folder is used. aName and
aRet are always empty, pParent is no longer used. So the pParent
argument makes no sense anymore.
bDirectory makes no sense without pParent and is apparently unused
(always sal_False by default).
The include of tools/tempfile.hxx in unotools/tempfile.cxx in not
necessary.
Conflicts:
tools/source/fsys/tempfile.cxx
Change-Id: I9c53b263a640e53140a8ae8795181b1c5e43f26d
2013-03-12 16:20:15 +01:00
f2d535b9f5
Keep concatenating adjacent string literals via juxtaposition instead of +
...
Change-Id: I098a8d657ed5ac1976013e1ee370ef76ed2242db
2013-03-12 10:28:21 +01:00
df6b4f98d3
unotools: use return value of copy()
...
Change-Id: I8eaa40197e2ea25d52af920e03b0fd0e32e94847
2013-03-11 21:43:38 +01:00
7d1f4cdec3
fdo#38838: Converting String/UniString to OUString
...
Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9
Reviewed-on: https://gerrit.libreoffice.org/2586
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org >
Tested-by: Fridrich Strba <fridrich@documentfoundation.org >
2013-03-11 15:50:44 +00:00
8933f19100
fdo#47011 autosave feature
...
removed unnecessary prop. name "Document/UserAutoSave" from saveopt.cxx
fixed autosave feature setting "losing its value"
set autosave feature default value to False
Change-Id: I473154b21bab53bf595a5a59e87dc16e472dcbf9
Reviewed-on: https://gerrit.libreoffice.org/2663
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr >
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr >
2013-03-11 14:37:09 +00:00
407b51db18
Remove RTL_CONSTASCII_STRINGPARAM (unotools)
...
Change-Id: I2911e50ddcd007d80498b9d65efd14368ac3baca
2013-03-11 14:01:05 +01:00
4bf95c4c31
make use of startsWith()
...
Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679
Reviewed-on: https://gerrit.libreoffice.org/2599
Tested-by: Fridrich Strba <fridrich@documentfoundation.org >
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org >
2013-03-08 13:16:49 +00:00
6583305dd7
simplify compareTo (now correct)
...
Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7
Signed-off-by: Stephan Bergmann <sbergman@redhat.com >
2013-03-08 13:04:13 +01:00