66fae3a2bc
coverity#704649 Unchecked dynamic_cast
...
Change-Id: Ibeb096d98cba7a55d9d806802473660d30000924
2014-10-24 09:24:54 +01:00
cf33ce9667
coverity#736876 Negative array index read
...
Change-Id: I5e0f2e4633286b320abfb6735232b57aedd3a5b3
2014-10-23 14:54:52 +01:00
035fe8a6aa
fdo#84938: replace MENUITEM constants with enum
...
Change-Id: I7b0085af3b13bd6e1a50bf1e0e986d1524b52d7b
2014-10-23 12:55:35 +02:00
816e5063b8
framework, unotest: do not override UserInstallation from environment
...
The PythonTest_dbaccess_python may fail in incremental builds because of
stale JVM path in workdir/unittest/user/config/javasettings_Linux_X86_64.xml
so it's better to use the fresh UserInstallation that is already passed
in from PythonTest.mk. To make that work, tolerate non-existing path in
SubstitutePathVariables::SetPredefinedPathVariables() at least when
running in the build environment, which is probably better than
effectively running with "/" as UserInstallation anyway...
This partially reverts commit 6dbb6275ebd1a4299099c3b6bc82ec4ee0e1fb86.
Change-Id: I4d42d53c049056590662828360c4ce5a29af0f4b
2014-10-22 14:10:16 +02:00
67c9d05451
fdo#84938: replace TIB_ constants with enum
...
Change-Id: I435ce2331fb49e7ce9fe97bdfddfaef706759a84
Reviewed-on: https://gerrit.libreoffice.org/12023
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-10-20 07:16:46 +00:00
6e417ffe04
coverity#1247630 Uncaught exception
...
Change-Id: Ic15d712a26bdb6565b78efc4e9cab1bb09fd1cf4
2014-10-17 15:19:43 +01:00
ad9498f8b8
More -Werror,-Wunused-private-field
...
...detected with a modified trunk Clang with
> Index: lib/Sema/SemaDeclCXX.cpp
> ===================================================================
> --- lib/Sema/SemaDeclCXX.cpp (revision 219190)
> +++ lib/Sema/SemaDeclCXX.cpp (working copy)
> @@ -1917,9 +1917,10 @@
> const Type *T = FD.getType()->getBaseElementTypeUnsafe();
> // FIXME: Destruction of ObjC lifetime types has side-effects.
> if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl())
> - return !RD->isCompleteDefinition() ||
> - !RD->hasTrivialDefaultConstructor() ||
> - !RD->hasTrivialDestructor();
> + return !RD->hasAttr<WarnUnusedAttr>() &&
> + (!RD->isCompleteDefinition() ||
> + !RD->hasTrivialDefaultConstructor() ||
> + !RD->hasTrivialDestructor());
> return false;
> }
>
> @@ -3517,9 +3518,11 @@
> bool addFieldInitializer(CXXCtorInitializer *Init) {
> AllToInit.push_back(Init);
>
> +#if 0
> // Check whether this initializer makes the field "used".
> if (Init->getInit()->HasSideEffects(S.Context))
> S.UnusedPrivateFields.remove(Init->getAnyMember());
> +#endif
>
> return false;
> }
to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about
initializations with side effects (cf.
<http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html >
"-Wunused-private-field distracted by side effects").
Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
2014-10-15 15:58:56 +02:00
cb7ede2d99
convert vcl StateChangedType to enum class
...
Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f
Reviewed-on: https://gerrit.libreoffice.org/11843
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2014-10-11 15:14:32 +00:00
277e98edce
cid#1244948 Uncaught exception
...
Change-Id: I421f245fd3be90f0e1d08ad92b0723a64121ae12
2014-10-10 10:14:18 +02:00
d7ea649b56
cid#1244950 Uncaught exception
...
Change-Id: I1aa4d437838dac42ac1fc803a2ba2a437fa3addb
2014-10-10 10:14:17 +02:00
d79ca9b29a
cid#1244951 Uncaught exception
...
Change-Id: I3bb5dc5932f4239507920cb9cafa66caab9ff7e0
2014-10-10 10:14:17 +02:00
36ec3ddc0b
cid#1244952 Uncaught exception
...
Change-Id: Ied23e7df1d8ebda9976e63d03c122c058addf274
2014-10-10 10:14:17 +02:00
fbf3aa391b
spelling: instanciated -> instantiated
...
Change-Id: I99f3010e30f81786b938dc11736ea1597cd5530d
2014-10-08 11:02:55 +02:00
9a65df2513
coverity#1078526 Logically dead code
...
Change-Id: I203511fcb1e740d7d371821d49a7c13a72e6fc3b
2014-10-03 09:07:56 +01:00
ddfb875ba2
coverity#1242768 Unused value
...
Change-Id: Ida66a4a4d00caa49e993938f86e357e4351a60c5
2014-10-02 14:49:00 +01:00
2b08019e2a
coverity#1242970 Result is not floating-point
...
Change-Id: Icd0b04a2b8d9250418dfec95668fa6c496e45e5e
2014-10-02 14:48:46 +01:00
b1472db9db
fix for older compiler, doesn't like <::
...
Change-Id: I8113125b7eb9d919aaf84a1dcde3e58e41e978f4
2014-10-02 08:48:59 +02:00
1777c425fe
loplugin: cstylecast
...
Change-Id: I4a8786f335b5f9a14116c546d32f1ff6cff99930
2014-10-02 07:37:19 +02:00
787ca46d94
loplugin: cstylecast
...
Change-Id: Idac41288539ff171e1c9fb0e12b172a311878ed6
2014-10-01 13:08:42 +02:00
fc04f76336
fdo#82577: Handle Time
...
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11
Time typedef.
Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866
Reviewed-on: https://gerrit.libreoffice.org/11684
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-10-01 07:34:23 +00:00
1fb8724f98
fdo#83558 Don't change toolbar tooltip on state change
...
Also removed EraseAllMnemonicChars since that method is called later by SetItemText
Change-Id: I10139d437290ccfed6a8a15e8e5ce501e15c2560
Reviewed-on: https://gerrit.libreoffice.org/11306
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
2014-09-24 20:30:17 +00:00
827c46e7d7
fdo#82577: Handle Window
...
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.
Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-23 14:11:39 +03:00
fb1be6943f
Always add the keyboard shortcut to the toolbar tooltips
...
Change-Id: I6f6e385cf6d09b0a3f18b708daeff2df9aba83c6
Reviewed-on: https://gerrit.libreoffice.org/11595
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
2014-09-22 21:23:46 +00:00
b1a5e34e27
Revert "Related fdo#81475 Improve toolbar tooltips in Writer standard toolbar"
...
Unfortunately this breaks the Edit menu - it is now crowded with long texts;
so while it may improve the toolbar, it definitely breaks the menu.
This reverts commit b59c5ace4b7213ffd62495d0c0e5b6411f5071be.
2014-09-22 19:00:19 +02:00
3c6da8e49a
Related fdo#77813: $(workdirurl) was always empty
...
Regression introduced with cb021fcafba06ccf973f2abe229a4761c0a002de "fdo#46037:
remove 1 comphelper/configurationhelper in framework."
Change-Id: I07727d93315e0d3d87004ce71708271e90a173a3
2014-09-22 14:16:27 +02:00
4e0744b002
Unwind one level of cluttering indirection
...
Change-Id: Iceaed0e5490b6002c1421d74dfb8f2d0ba38cbf5
2014-09-22 12:14:24 +02:00
8da21eca45
vcl: Allow creation of button content from action name (.uno: commands).
...
Change-Id: If4b2aef59d45a848fb77de9e1b7bf80d49548a75
2014-09-22 11:57:00 +02:00
b59c5ace4b
Related fdo#81475 Improve toolbar tooltips in Writer standard toolbar
...
and show the shortcut in the tooltip also when there is a custom tooltip
Change-Id: Ia3f5d17df3769479f7aacf63a83507ccb8593103
Reviewed-on: https://gerrit.libreoffice.org/11303
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
2014-09-21 16:06:18 +00:00
5278a0e3a7
fdo#81237: OpenGL window is not resized by view change
...
Reproduce:
- Create a 2D OpenGL chart
- Step out from edit mode
- Zoom in / zoom out
Behavior
- Chart window is not resized, it has a constant size.
When we step out from chart edit mode the chart becomes
an inplace active object (instead of UI active) which means
the m_xDockingAreaAcceptor is removed. On the other hand
it seems we don't actually use this m_xDockingAreaAcceptor here,
so don't need to check whether it exists.
Change-Id: I056109b6e5cac28cdd2aeb8fabd9190413a16ed5
2014-09-21 15:49:54 +02:00
60e78fbb80
fdo#82577: Handle Font
...
Put the VCL Font class in the vcl namespace. Avoids clash with the X11
Font typedef.
Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-18 08:54:37 +02:00
b53b5081a8
framework: sal_Bool -> bool
...
Change-Id: Ie56d3fe674af048d7aea32f141c5825e4c2aa98b
2014-09-12 11:48:34 +02:00
d22edd44b5
vcl: It's a close button, there is no such a thing as a 'closer'.
...
Clean up at least vcl + what depends on that, but unfortunately there are
still some "Closer"'s left elsewhere...
Change-Id: I019c863d07ee62d701ff01c8d871334012c105f1
2014-09-12 08:41:29 +02:00
037d03b9fa
Typo: (N|n)ormaly->(N|n)ormally
...
Change-Id: I96d081f394b0b62d99ec1034bf5e99da9aedd9d9
2014-09-10 22:35:39 +02:00
846c5a0d3f
Fix indentation.
...
Change-Id: I0fb904353bc79199d7df957cf756883e425c97eb
2014-09-09 06:58:27 +02:00
57a4337e25
set names on a bunch more threads...
...
Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
2014-08-25 13:21:59 +02:00
30ae83c268
fdo#82577: Handle KeyCode
...
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11
KeyCode typedef.
Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-23 22:33:30 +03:00
d15d7b7bba
Open the right tab for the More... command
...
Partially fixed by Caolán in
3ac80237f310366afef0f7b6c427889d652bd369.
Remaining issues are the paragraph submenu, and the top
menu for both selection and paragraph. Also fixed for
the drawing text and annotations shells (including the
regression created by the above commit, that the dialog
didn't show at all).
Change-Id: I1ba4c825ad48af23ad5c07c8c5f25380952c0be1
2014-08-22 14:33:28 +03:00
a0de5cc93d
fdo#529470: I can't remove a path in AutoText dialog
...
This is, not surprisingly, somewhat weird code, but I think this patch does
what is necessary, it does fix the bug.
Change-Id: Ie1947b311f1455ba48a904f5ef42ad92899fac31
2014-08-19 21:03:05 +03:00
3b6091ca42
document the swap-on-free idiom usage
...
Effective C++, item 17
Change-Id: I5c6f20c9631f1ca86b481a56ef08d578a7addbad
2014-08-18 11:07:31 +02:00
748ed65ffb
drop TabControl resource loader
...
Change-Id: Idb909c205dfadaadeb8b98ce08fe2f4286cfce26
2014-08-15 17:02:59 +01:00
3ac80237f3
Resolves: fdo#81795 open the font tab via More... languages
...
a) FontDialog doesn't take a Language argument, so drop that
b) Give FontDialog a Page argument and set it to "font" when
called from the status bar More... menu entry
Change-Id: Ibaf4d5e51d47794b8b0e3c3e06a6d8e00a7d2896
2014-08-11 16:56:46 +01:00
5b9509115b
fdo#71625 Don't loop autosave if userautosave fails
...
Should also fix most of the reports of fdo#46635
(I have no idea regarding the original report,
because it predates the autosave feature.)
Change-Id: I006d62053a159ab3157438a57dee56d6d99990a8
2014-08-10 15:55:07 +03:00
9bac4d413e
typo: more then -> more than
...
Change-Id: I2e477d66f25bde7256938ccb1f95ab26add24922
2014-08-01 23:40:12 +09:00
8a406391b1
Recovery files can have an extension
...
Looks like unintentional change made in
c4a593b6b1732def0a21f455c0ca50f82a9bc40d
Change-Id: If314a3f290c79909e3a807f9c9c95791c26067e9
2014-07-28 15:09:32 +03:00
16c4dcf4e6
coverity#704648 Dereference after null check
...
Change-Id: I52b5fa71a440778d3423db84a3bf374f0c2654b9
2014-07-26 21:25:17 +01:00
d5fb4b7319
Typos
...
Change-Id: I0c17f40b3e593ae3771fa751a817f84bf2f2323d
2014-07-23 22:23:52 +02:00
23e818d4f5
AmbigousFilterRequest is only ever extracted, never created
...
Change-Id: I79c669c1635192199d6ef135e1ab9b48a9e7e63a
2014-07-23 10:49:30 +01:00
594a5e20f7
coverity#1224998 Uncaught exception
...
Change-Id: I96db9ab47b9494a1d71259e93ad393bd70c39d97
2014-07-14 09:21:00 +01:00
1fc3126439
convert GlobalImageList to SimpleReferenceObject
...
instead of hand-rolling it's own reference counting
Change-Id: Ie90cdce49b9dab68f1bdf487b0f308e03464f893
2014-07-11 15:44:21 +02:00
3a93809df9
improvements to ShareableMutex
...
- add some docs
- remove unnecessary null checks
- improve field name
Change-Id: I8299ec0d56ee5d903f05f2790f97f90ca00663cb
2014-07-10 11:04:10 +02:00