Commit Graph

179 Commits

Author SHA1 Message Date
4f2b97d4c7 WaE: convenience initializer should not invoke an initializer on 'super'
New warning from Clang 6. So get rid of the initWithOUString
initializer completely, it is called only from stringWithOUString
anyway.

Change-Id: I510101bfe1e6ac52f8f5a1d8a061082b3875419f
2014-07-26 11:20:10 +03:00
17458019ba -Wdeprecated-declarations: first deprecated in OS X 10.10
fpicker/source/aqua/SalAquaFilePicker.mm:220:14: warning: 'NSOKButton' is deprecated: first deprecated in OS X 10.10 - Use NSModalResponseOK instead [-Wdeprecated-declarations]
fpicker/source/aqua/SalAquaFilePicker.mm:225:14: warning: 'NSCancelButton' is deprecated: first deprecated in OS X 10.10 - Use NSModalResponseCancel instead [-Wdeprecated-declarations]
fpicker/source/aqua/SalAquaFolderPicker.mm:114:10: warning: 'NSOKButton' is deprecated: first deprecated in OS X 10.10 - Use NSModalResponseOK instead [-Wdeprecated-declarations]
fpicker/source/aqua/SalAquaFolderPicker.mm:119:10: warning: 'NSCancelButton' is deprecated: first deprecated in OS X 10.10 - Use NSModalResponseCancel instead [-Wdeprecated-declarations]

Change-Id: Ib497903e4df868867cc56e2eade7bb2572f0902a
Reviewed-on: https://gerrit.libreoffice.org/10115
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-11 10:12:31 +00:00
a402fd0d52 loplugin:stringconcat
Change-Id: Ibf410eb1b8be81505b8e778aadf916a26ba39468
2014-07-01 23:19:52 +02:00
9b791f9c31 remove unnecessary use of OUString constructor when throwing
Change-Id: I4a3f3f911dcfbf88696053215a2fb7a94678244c
2014-05-27 08:20:11 +02:00
2bd7767d01 Resolves fdo#70681: fixincludeguards.pl: all that's left
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5
Reviewed-on: https://gerrit.libreoffice.org/9360
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-15 12:50:46 +00:00
5ec7a589be Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part8
Change-Id: Ie16923d17541e84e0d7424fffe37caf410786abf
2014-05-10 06:19:42 +02:00
794f09f195 simplify ternary conditions "xxx ? true : yyy"
Look for code like:
   xxx ? true : yyy;
Which can be simplified to:
   xxx || yyy

Change-Id: Ib7ca86580bfd0cf04674328a3c0cf3747de4758d
2014-05-06 07:45:25 +02:00
ba59a951e5 SAL_OVERRIDE, Mac OS X fpicker redux
Change-Id: I02c234f36ed642b63a4a15ac4f865d8926fe081f
2014-03-27 20:54:46 +01:00
f342aba967 loplugin:passstringbyref (and some dead code)
Change-Id: I96f5b58ac000e7535b6759af04be60e738aa2b09
2014-03-19 22:21:41 +01:00
578bd15399 Currently used file pickers API doesn't work for OS X < 10.6
Change-Id: I69592ada3a413cae2d0def2faa495db44894ed3f
Reviewed-on: https://gerrit.libreoffice.org/8430
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-03-05 09:28:19 -06:00
9a06a6e649 Avoid potentially sending message to deallocated instance
The m_pFilterControl is always added to the m_aActiveControls list
(see createFilterControl()), so it has been released by the loop over
the list. So make sure to call setTarget before the loop.

For some reason this doesn't normally cause sending a message to a
deallocated instance, though. (I only noticed it when experimenting
with if-zeroing out the creation of the user pane.) I guess this might
mean that we actually have a leak here, if the controls in the list
don't actually get deallocated by the release messages in the loop?

Change-Id: If691f8d35bab606ce8a61f677d8e495e72a23148
2014-03-04 12:41:27 +02:00
e53eacb133 Use FSResolveAliasFile at least on OS X < 10.6
(see also: commit 7aa42913bb1828b877c2f73b4fe59cc3c65a67bf)

Change-Id: I6b8945bfcfce277eefdd54d25c7827c2ae19ef16
Reviewed-on: https://gerrit.libreoffice.org/8394
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-02-28 10:04:42 -06:00
2a09751d51 Remove visual noise from fpicker
Change-Id: I58ae70cc71853e17e638ef64aaded87615e37986
Reviewed-on: https://gerrit.libreoffice.org/8264
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 04:35:19 -06:00
5b9f0b283b loplugin:literaltoboolconversion
Change-Id: I1e1df91ff3ca9d10e26b423ed011118c81453d7d
2014-02-25 15:06:23 +01:00
d548b250db Drop unnecessary #include
Change-Id: Ib9ab63cdf21f54b1611de37c5538a300a1b39ba6
2014-02-18 13:24:11 +09:00
8723bf714b Bin mysterious FIXME comment and 'if (0) return 0;' line
Change-Id: I41a29ec89b848ea0bfeb9975cd675357a2fcc69f
2014-01-06 14:30:21 +02:00
a3b9461ad3 WaE: unused variables
Change-Id: I95f0afc4b71dd62c7635f0a56b0917463db08c35
2013-12-26 18:12:26 +02:00
9ed364774c Adapt all (non-extension, SharedLibrary) .components to environment="..."
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17 11:06:00 +01:00
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
4e40d2ef4b typo
Change-Id: I7bb89ac8acf42183e9d7ffaf942365ffa9da9815
2013-10-22 13:32:39 +02:00
ee5661ecd3 fdo#54938: Adapt supportsService implementations..
to cppu::supportsService

Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14
Reviewed-on: https://gerrit.libreoffice.org/6370
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-22 10:28:10 +00:00
f95d418d12 String -> OUString
Change-Id: I18b79fa866c21a8036a25c05fbc13c1d72e542aa
2013-10-20 22:58:27 +02:00
212f0e9f00 Missing include
Change-Id: I5674385df64bb47813f551fb666ffef7d7434728
2013-10-20 22:54:08 +02:00
45e366eadb drop unnecessary tools/string includes
Change-Id: I4278999b9b7d184c26036bbe9e3b98420f461e8c
2013-10-20 19:00:36 +01:00
8dd1ff42a2 We need <tools/string.hxx>
Change-Id: I0fbdd76fd12a242834e1690ff93558cc885d1768
2013-09-25 22:13:23 +02:00
0aeba08d3e Fix "Save As" when sandboxed on OS X
Change-Id: Ibe2ea21265a0bb9c4fedcef137626df2a8019116
2013-08-25 21:14:08 +03:00
d22c94dbf1 Make our File>Recent Documents work better when sandboxed
Store security scope bookmarks for files selected in the file picker
in the user data. (I looked into storing it in the LO "registry" in
the Histories/PickList thingies, but that was horribly complex.)

When opening a file, if we have stored a security scope bookmark for
it, use that while opening the file.

Change-Id: I347ae2dd815299441c17467d9b66a226061d0ed2
2013-08-23 21:33:41 +03:00
df58d4a925 Typo: controling => controlling
Change-Id: Ie5bb34d2000be74bad7f18808f49f389ab9373d8
2013-08-12 21:40:22 +02:00
7fd15394ad Resolves: #i122301# fix build breaker on Mac in fpicker for debug=true
NSLog demands a non-const NSString but doesn't change the string.

(cherry picked from commit 6f279aad1a472ebf4afd08334e10a24342924315)

Conflicts:
	fpicker/source/aqua/CFStringUtilities.hxx

Change-Id: I25c82dc81feda9b771f064631857a1e7f9c4d2bb
2013-08-08 08:44:44 +01:00
55e74e06ff Avoid deprecated API
Change-Id: I703e94b999382f52331a61050eaf3d31073f5a9c
2013-06-19 02:28:31 +03:00
4286070ec5 Avoid deprecated API
Change-Id: I2537721bd6b0214c25590504751c39fb4661e2fe
2013-06-19 02:28:30 +03:00
c22acb449f Don't use deprecated API
Change-Id: I1dfc8998eeeda31648a4b4fe95d40117686a866b
2013-06-16 23:26:36 +03:00
7aa42913bb WaE: 'FSResolveAliasFile' is deprecated: first deprecated in OS X 10.8
Use the bookmark API instead.

Change-Id: I61fe91ea2c7287c52d45ddfee772ecfcfb5498b6
2013-06-16 23:11:47 +03: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
e1f6dac689 Replace compareTo(...) == 0 with ==
Proposed patch for the following issue:
https://bugs.freedesktop.org/show_bug.cgi?id=62096

Change-Id: Ib83a9051ea12c53642f781e5427a6ca728049a7f
Reviewed-on: https://gerrit.libreoffice.org/3198
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-05 08:57:28 +00:00
3ec3f2fd5f -Werror,-Wunused-macros
Change-Id: Ia4560cd9726f64d85325c0bb28b7cff9774bc173
2013-03-27 13:39:36 +01:00
5e55ac273c -Werror,-Wunused-macros
Change-Id: I8df5248894a91981192e531610dbb8a387483aa1
2013-03-27 13:32:06 +01:00
488e6875e9 remove external include guards
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-25 19:58:16 +01:00
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
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
d7f9b76939 fix mid-air collision of commits
Change-Id: I72a267045dd532a341d062cf13b7393779f579c6
2013-02-19 11:02:08 +02:00
a413832fe2 and let's try actually including the relevant headers...
Change-Id: I38733bb04013250290b00ec99f358403060d1a89
2013-02-19 10:44:44 +02:00
648d6e5162 Include the XInitialization header
Change-Id: I662dc0615d6fae752a22000bea750e7d59f98472
2013-02-19 10:44:19 +02:00
503ee06fb8 fix up some of my fdo#46808 changes
... It turns out removing XInitialisation was a bad idea.

Change-Id: I6a08f3f769ffc9017e94e8463a97cb18d39aa677
2013-02-19 10:35:44 +02:00
ee8dc096aa fix ambiguous base-class problem
Change-Id: I7cf34ceebc656e0ca507521bfdaaf8beac67644c
2013-02-12 14:04:16 +02:00
a5d63b9413 fix unused parameter warning
Change-Id: I8acec495df9ef9cd077ca36bde3fac07a3586b8c
2013-02-12 13:49:52 +02:00
a315af8ef4 use a typedef to reduce code duplication
Change-Id: I915b88ad0683cecaf2018a529fb904753a4f27c0
2013-02-12 13:33:02 +02:00
a160920560 Fix compilation of MacOS FilePicker
...broken by 4b51374a7021d52f7f1be1861e2ee6a011b30ecd "fdo#46808,
Adapt ui::dialogs::FilePicker UNO service to new style."

Also remove unused field while we're there.

Change-Id: If7e2057b9383edf4ee2fa581df984dea0e04e430
2013-02-12 13:23:24 +02:00
4b51374a70 fdo#46808, Adapt ui::dialogs::FilePicker UNO service to new style
Change-Id: I1cafbfc53994e5d74241042dbd1d292ddbda67d5
2013-02-12 10:14:45 +02:00
f9aabc714a fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT
- replaced OSL_TRACE with SAL_INFO

Change-Id: I4d63df493e85bc095b8a11e3842b0d69c5217c96
Reviewed-on: https://gerrit.libreoffice.org/1804
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-31 14:13:55 +00:00