Commit Graph

3693 Commits

Author SHA1 Message Date
cc25f70ef1 compareTo -> equals
convert OUString::compareTo usage to equals to startsWith where it
is more appropriate

Change-Id: I6f5b5b7942429c0099ad082ba4984fd18e422121
2014-06-04 11:52:34 +02:00
1d2993df98 coverity#737167 Uncaught exception
Change-Id: I9ac3ffbecf8c9efc0b69ad4606c61dbf8fa5a0e9
2014-06-04 09:38:12 +01:00
f634cda2a2 avoid problems with poppler's and vcl's FontInfo during runtime
Change-Id: I1dbd256812cccae1e6ed0ad8bb34ce427e5e5be8
2014-06-04 07:49:15 +02:00
229abf40ac coverity#1219794 Uncaught exception
Change-Id: Icc9e5faf9ef15840c359b7766112278094d52dea
2014-06-03 20:10:17 +01:00
0301abbbc3 coverity#1219801 Uncaught exception
Change-Id: I372c1891e41510c24daf256d00f3ca98e8a374a9
2014-06-03 20:10:17 +01:00
d9e7a359ef coverity#1219797 Uncaught exception
Change-Id: I597fb90d677e7cade71bf6cbf7f7bce9d3bd05f6
2014-06-02 16:59:57 +01:00
4957262473 coverity#1219799 Uncaught exception
Change-Id: Id1903def4869bccef18f8a1132521d4f24fed551
2014-06-02 16:59:57 +01:00
1ae89d1892 fdo79368 Don't process overflow menu items twice.
We reuse the toolbox overflow menu for toolbarmanager's context
menu -- toolbarmanger previously added its menu listener to the
toolboxes menu permanently, meaning that it would try to handle
overflow menu items (in addition to the context menu items which
it should handle), instead we should only add the listener when
we are actually using the menu as a context menu.

Perhaps it would be better in the long run to actually use fully separate
menus instead, and ask toolbox to specifically add its items to that
rather than trying to hack the context menu on top of the overflow menu?

Change-Id: Iecface2c6eae9ab79dbcdb25ffdbaf446e2885ea
2014-06-01 08:42:46 +01:00
ebc0a15515 remove more unnecesary OUString constructor use
when throwing exceptions

Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
2014-05-29 09:01:40 +02:00
ec651eaead cid#706551 Uncaught exception
Change-Id: I83cb2abe19e72c13ac00ecd8c6ec58ffbfbcb659
2014-05-28 10:00:56 +02:00
ecd00991fd cid#706552 Uncaught exception
Change-Id: I93c41521a7687ca5a451f8107971d1b8fabfd489
2014-05-28 10:00:56 +02:00
0a87f4ad1a cid#706553 Uncaught exception
Change-Id: Ib3014a8f7916d8d3b9b21ddb7d2ba29108c5cd27
2014-05-28 10:00:56 +02:00
4b8e95bf8d cid#706558 Uncaught exception
Change-Id: I23b4d4de0772a45b57730921ef0fd191c53c4763
2014-05-28 10:00:55 +02:00
92b447876d css already means ::com::sun::star
Change-Id: I48d7b746d7cc49246743c62480b0d225d2519342
2014-05-27 14:00:28 +02:00
898b7643e4 loplugin:sallogareas
Change-Id: I7fe1350e55bea2eead2c7fedf432da594aa6bd9c
2014-05-27 13:29:50 +02:00
ea491d056d OSL_TRACE -> SAL_INFO
Change-Id: Ib9e1ed6119b5286871ac10136f7fcbefffe7aebe
2014-05-27 12:34:30 +02:00
0f2824b117 remove more unnecessary use of OUString constructor
Change-Id: Iae14cb3df65295b6894fd9e05411c5698e9c8aba
2014-05-27 08:20:12 +02:00
9af0abebfd remove unnecessary use of Reference constructor in throw
Convert code like this:
  throw IOException("xx",
     Reference< XInterface >(static_cast<OWeakObject*>(this)) );
to this:
  throw IOException("xx",
     static_cast<OWeakObject*>(this) );

Change-Id: Ife9f645f0f1810a8e80219126193015502c43dbb
2014-05-27 08:20:11 +02:00
3b24dcc8a8 Remove unnecessary semicolons
A simplified version of the semantic match that finds this problem is
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r1@
statement S;
position p,p1;
@@
S@p1;@p

@script:python r2@
p << r1.p;
p1 << r1.p1;
@@
if p[0].line != p1[0].line_end:
    cocci.include_match(False)
@@
position r1.p;
@@
-;@p
// </smpl>

Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e
Reviewed-on: https://gerrit.libreoffice.org/9493
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-27 01:19:00 -05:00
637bb5adf7 Resolves: fdo#79178 Crash when opening a form created with a previous version
A regression from c2c530da69152ff9192b9726aa95961803ce9b29 I think. Rework
this to follow the same ctor + init pattern as the others

move the fillCache out of the ctor to acquire the obj first, then
call the extra init before returning it

Change-Id: Ia0dc878654780294a4935f07ac70c4358ca51dfc
2014-05-25 15:28:39 +01:00
3467112fbd coverity#983680 Uncaught exception
Change-Id: I62baf5b8809d915a4fe6a32788868072d55258e0
2014-05-24 16:11:00 +01:00
ac76cc7e60 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23 22:11:52 +02:00
c6f72b6a7c coverity#1215320 Uncaught exception
Change-Id: Icbc9f370573eda2a79c04825b00db77d1bf1924f
2014-05-23 20:37:32 +01:00
afe26bb894 coverity#705818 Dereference before null check
Change-Id: Ie34e0df8ce38c58f5397942e53c55f6cc091b69d
2014-05-23 14:16:10 +01:00
e7bc3cab01 remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params,
remove lots of boilerplate code.

Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-23 15:06:00 +02:00
4cf56e0584 coverity#1215383 Uncaught exception
Change-Id: I568ba1a942acd622611fb53210e303147b77601f
2014-05-23 08:54:36 +01:00
6cda7d5793 coverity#1215384 Uncaught exception
Change-Id: I833b8b9532c61f666755ed5e92135da3aeb55f27
2014-05-23 08:54:36 +01:00
fab0e8b40d coverity#1215385 Uncaught exception
Change-Id: I765dd9bab26e3736c6b18a291cfd108342644e8e
2014-05-23 08:54:36 +01:00
3166336e53 coverity#1215386 Uncaught exception
Change-Id: I2eb374a9209cf4bbf9e2b533ec2522bc1efe6468
2014-05-23 08:54:35 +01:00
61ce018658 Resolves: #i86528# use the module manager to identify the context...
for addons menu merging

(cherry picked from commit 2aac0070dbef6c1ad7eeccf7d4015cdcbffe067e)

Conflicts:
	framework/source/classes/menumanager.cxx
	framework/source/fwe/classes/addonmenu.cxx
	framework/source/uielement/menubarmanager.cxx
	include/framework/addonmenu.hxx

Change-Id: I3b606671db3a4c6ba8ed2b850e01e1ac91db7581
2014-05-19 13:28:17 +01:00
b1e29a6ac5 Single line between methods 2014-05-17 21:14:06 +01:00
3c1e30b77d Correct common misspellings, and remove some ASCII art along the way.
Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c
Reviewed-on: https://gerrit.libreoffice.org/9356
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2014-05-17 12:38:38 +00:00
68741d0055 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part13
Change-Id: Ieecfd7ccb10c75ac639d0ba8e7cb588607097c2a
2014-05-15 22:52:22 +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
bb7dad11e1 coverity#1213242 Dereference null return value
Change-Id: I23ce35dbeadca1eea4c67d7d70acbf5ce3a82ac8
2014-05-15 10:21:26 +01:00
9f09218d4e coverity#441006 Dereference null return value
Change-Id: I6c00db53ce507dacbf6032dbe4d41d806740be62
2014-05-15 10:21:23 +01:00
0ac3a94c9f coverity#440876 Dereference null return value
Change-Id: I7d00c3a3c1a12176e4b1ab74712aabeb2f1cf90e
2014-05-15 10:21:22 +01:00
b2096deaff various loplugin:passsequencebyref
Change-Id: Id1045a7f66b4fa10b6491587ba07246a31ceba72
2014-05-14 16:54:27 +02:00
493bd11fcb Removed redundant private methods comments 2014-05-14 14:17:01 +01:00
c8695c6cce Unify utl::TempFile ctors
Change-Id: I0a781a86804808cebf7756506d9299971c13e2ff
2014-05-14 13:38:23 +02:00
248145f99e Find places where uno::Sequence is passed by value.
Implement a clang plugin to find them, and clean up existing code
to pass them by reference.

Change-Id: If642d87407c73346d9c0164b9fc77c5c3c4354b8
Reviewed-on: https://gerrit.libreoffice.org/9351
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-14 08:10:22 +00:00
9a57fe1af0 WaE: implicit conversion of literal of type 'int' to 'bool'
Change-Id: Idf86fb4ac01a594d88e7d43c66b010c394ef217a
2014-05-11 08:56:20 +03:00
777bc22ca6 Remove ToolBarLayoutManager::implts_createUIElement()
There is no need for this function, merge it into createUIElement.
This really helps when I'm looking at a backtrace in gdb.

Change-Id: I005b5161eb2cc8acf509ae7ba4e41186969904d1
Reviewed-on: https://gerrit.libreoffice.org/9309
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-05-11 05:54:26 +00:00
75071783b7 Remove unnecessary function ToolbarLayoutManger::implts_createToolBar()
This function is not necessary. I have merged it into createToolbar().
There are just too many function calls when I try to get a backtrace.

Change-Id: I3b1c08b97e24ba18a268f105b00670ed2799f60a
Reviewed-on: https://gerrit.libreoffice.org/9308
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-05-11 05:54:07 +00:00
2ce779cd0c fix-includes.pl: framework
Change-Id: I405196a2df0be0eb77961540b457933777b90a50
2014-05-11 01:55:38 +02:00
4d9009f310 coverity#707880 Uninitialized scalar field
Change-Id: I71c15e00228a6eb4ceb2019ee4ae6d14438fe831
2014-05-10 21:13:03 +01:00
9897913416 coverity#1213247 Dereference null return value
Change-Id: I039536322fd1c9c786c4cd7088807aee7e2e929d
2014-05-10 21:12:55 +01:00
db06595d13 vcl::EventPoster shall probably be covered by SolarMutex
...as most parts of VCL.  Ran across at least one case where a remote call to
framework::CloseDispatcher::release -> ~CloseDispatcher -> ~EventPoster ->
Application::RemoveUserEvent caused a crash.  As always with SolarMutex, keep
fingers crossed that this is about the right level to acquire it.

Change-Id: I8f4be7329adbf72355774fa5d3c472270da3ddd2
2014-05-06 16:33:55 +02:00
5d0272772a consistent percent sign in comments
Change-Id: I9906b4e58fd8672e51f6aa2e56ec68bb28772500
2014-05-06 07:19:08 +02:00
4f9b21248f simplify ternary conditions "xxx ? yyy : false"
Look for code like:
   xxx ? yyy : false;
Which can be simplified to:
   xxx && yyy

Change-Id: Ia33c0e452aa28af3f0658a5382895aaad0246b4d
2014-05-05 12:47:48 +02:00