Richard Heck
fa190691a8
When we use InPremable styles, we want to write as many versions
...
to the premable as the user enters.
2016-06-12 00:58:33 -04:00
Richard Heck
e622f82521
Add comments to fix coverity #23505 and 23507.
2016-06-12 00:35:49 -04:00
Richard Heck
4152c68c66
Add comment to fix coverity #111935 .
2016-06-12 00:31:33 -04:00
Richard Heck
a48adfa6d6
Fix coverity issue #127197 .
...
We may fail to get a buffer when we request one.
2016-06-12 00:26:38 -04:00
Richard Heck
f19d650752
Add comment about coverity #102061 .
2016-06-12 00:22:09 -04:00
Richard Heck
7b15ea393f
Add a check to please coverity.
...
Fixes #23496 .
2016-06-12 00:12:03 -04:00
Richard Heck
6675601147
Fix a number of other uninitialized members.
...
Fixes coverity #23392 , 23394, 23397, 23403, 23414, 23424,
23448, 23477.
2016-06-11 23:59:55 -04:00
Richard Heck
ae676958d9
Add comment to fix coverity #23438 .
2016-06-11 23:57:15 -04:00
Richard Heck
d29732e138
Initialize a bunch of uninitialized members. It does not seem to
...
matter what they are initialized to. Fixes coverity #23391 .
2016-06-11 23:39:43 -04:00
Richard Heck
1bd5ef9a75
Add some comments to fix coverity #23386 .
2016-06-11 23:26:02 -04:00
Richard Heck
3703a0235c
False positive on coverity #23366 .
2016-06-11 23:13:01 -04:00
Richard Heck
7aa6f972da
Add a LATTEST, just in case this ever causes a problem.
...
Fixes coverity #23363 .
2016-06-11 23:09:30 -04:00
Richard Heck
df022f91b4
Check to make sure we have a preview loader.
...
Fixes coverity #23353 .
2016-06-11 23:09:30 -04:00
Richard Heck
a637efca6e
Add comment fixing coverity #23351 .
2016-06-11 23:09:30 -04:00
Richard Heck
9d49f09bcf
Add comment about coverity #23335 .
2016-06-11 23:09:30 -04:00
Richard Heck
fd42194c7e
Add comment to fix coverity #23308
2016-06-11 23:09:30 -04:00
Richard Heck
2cb6ed9376
Make sure we have a buffer in VC_COMPARE.
...
Fixes coverity #23304 .
2016-06-11 23:09:30 -04:00
Richard Heck
edefef17b5
Add comment for coverity, fixing #23307 .
2016-06-11 23:09:30 -04:00
Richard Heck
355395174b
Mark a number of coverity false positives.
...
Fixes coverity #23284 , 23285, 23286, 23287, 23289.
2016-06-11 23:09:30 -04:00
Scott Kostyshak
2db62cf5d5
Add a comment and FIXME that lualatex can make DVI
...
The command 'lualatex' can produce a DVI with the option
--output-format=dvi
It is best to keep things as is because it is better to guess a PDF
than to guess a DVI (we do not use that feature of the 'lualatex'
command internally; we use 'dvilualatex' instead). However, we
should ideally get this information in a more robust way.
Thanks to Günter for pointing this out.
2016-06-11 17:05:28 -04:00
Günter Milde
b170b6e40f
fix #10199 Non-encodable characters with XeTeX and utf8-plain
...
XeTeX with TeX fonts is only safe with ASCII input encoding (see #9740 )
and we therefore force "ascii" when exporting with XeTeX and 8-bit TeX-fonts.
However, "utf8-plain" is a "power-user" option, which allows to switch off LyX's
encoding of the LaTeX file:
keep this also for "XeTeX with TeX fonts".
The user is responsible to ensure all characters can be processed and are
correctly shown in the output. The provided test sample shows the problems
with this encoding without special measures (like loading fontspec in the
user-preamble or a document class).
2016-06-11 13:57:24 +02:00
Stephan Witt
e8b15b5f0c
Add missing includes after change to boost signals2
2016-06-11 09:56:35 +02:00
Richard Heck
bb5c760b37
Fix silly error outputting math sizes. Fixes bug #10129 .
2016-06-11 00:49:21 -04:00
Guillaume Munch
ab41c1d1ac
Fix bug #10119
...
This makes Qt 5.4 as usable as Qt 5.5.1 in my experience. Otherwise, fix again
INSTALL.
2016-06-11 05:42:43 +01:00
Guillaume Munch
8e4648f38c
Add missing header
...
Spotted by jkulesza
2016-06-11 05:08:23 +01:00
Richard Heck
9d5ffa8e75
Restore last selected label when using the "go to label" feature
...
of the reference dialog.
2016-06-10 18:19:46 -04:00
Georg Baum
2047ea5eb4
Replace Boost.Signals with Boost.Signals2
...
Boost.Signals is deprecated. This fixes bug #9943 .
The only thing left to do is to rewrite (or get rid of) the boost -mt test
in config/lyxinclude.m4 not to use signals anymore.
2016-06-09 22:25:34 +02:00
Guillaume Munch
e87febd0de
Exercise: simplify the definition of IconvProcessor
...
It is no longer needed to create fake copy constructors and assignment and to
deal with deletion by hand, thanks to unique_ptr, the inference of move
constructor and assignment operator, and the compatibility of standard
containers with movable objects.
2016-06-09 19:16:44 +01:00
Guillaume Munch
8d640dc776
Remove non-copyable idioms
...
Two better ways of making a class non-copyable in C++11:
* Store the p. impl. in a unique_ptr (for the cases of classes with p. impl.),
or:
* Define publicly the copy constructor and assignment as deleted
Lots of other classes could be cleaned up in this way.
2016-06-09 19:16:44 +01:00
Guillaume Munch
973618e1c1
Missing headers
...
Found by Jean-Marc
2016-06-09 19:16:44 +01:00
Jean-Marc Lasgouttes
725c66d20c
Initialize GuiDocument:biblioChanged_ in constructor
...
Found by Coverity
2016-06-09 17:38:30 +02:00
Jean-Marc Lasgouttes
664fca5566
Initialize correctly SystemcallPrivate in constructor
...
It seems that Error is the best possibility when nothing has been done yet.
Found by Coverity
2016-06-09 17:34:14 +02:00
Jean-Marc Lasgouttes
7800c05788
Initialize bool member of Package in default constructor
...
Found by Coverity
2016-06-09 17:26:55 +02:00
Jean-Marc Lasgouttes
ab40fe6f05
Initialize properly InsetTabular members in constructor
...
Found by Coverity
2016-06-09 17:23:27 +02:00
Jean-Marc Lasgouttes
0f5c34b8ab
Initialize Parse::theCatCode_ in constructor
...
Normally, it is done before tokenizing, but it does not hurt to do it
even before.
Found by Coverity.
2016-06-09 17:11:41 +02:00
Jean-Marc Lasgouttes
76f45b351d
Initialize FindAndReplaceOptions in default constructor
...
Found by coverity
2016-06-09 17:06:21 +02:00
Jean-Marc Lasgouttes
bad511f3fe
Initialize correctly GuiErrorList::from_master_ in constructor
...
Found by Coverity
2016-06-09 16:58:13 +02:00
Jean-Marc Lasgouttes
102e6340e5
Initialize InsetExteralParams::preview_mode in constructor
...
The value PREVIEW_OFF is the same default as for external::Template.
Found by Coverity
2016-06-09 16:51:07 +02:00
Jean-Marc Lasgouttes
e3d74ee935
Initialize GuiSendto::format_ in constructor
...
Found by Coverity.
2016-06-09 16:44:56 +02:00
Jean-Marc Lasgouttes
a0c2328fd6
Always initialize InsetQuote language in constructor
...
Found by Coverity
2016-06-09 16:42:24 +02:00
Jean-Marc Lasgouttes
c056062d59
Initialize some GuiTabular members in constructor
...
Found by Coverity.
2016-06-09 16:38:32 +02:00
Jean-Marc Lasgouttes
020a890f42
Initialize ScopeBuffer::buffer member in constructor
...
Found by Coverity.
2016-06-09 16:34:25 +02:00
Jean-Marc Lasgouttes
4f795bd309
Initialize LyXModule::available_ in constructor
...
Found by Coverity.
2016-06-09 16:26:07 +02:00
Guillaume Munch
b95b77c631
Replace boost::tuple with std::tuple
2016-06-09 15:21:39 +01:00
Guillaume Munch
b032e2dfaf
Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr
...
shared_ptrs now only require the <memory> header.
2016-06-09 15:21:39 +01:00
Guillaume Munch
ca8709aaf5
Replace boost::scoped_ptr with unique_ptr
2016-06-09 15:21:39 +01:00
Guillaume Munch
557975a8de
Replace auto_ptr with unique_ptr
...
This is a mechanical replacement. For now it seems that unique_ptrs are
essentially used for exception-safety. More could certainly be done to clarify
pointer ownership in general.
2016-06-09 15:21:39 +01:00
Guillaume Munch
af5f69cea7
unique_ptr and make_unique
2016-06-09 15:21:39 +01:00
Jean-Marc Lasgouttes
af6a164e3c
Initialize all MathMacroTemplate members in constructors
...
Found by coverity.
2016-06-09 16:19:31 +02:00
Jean-Marc Lasgouttes
8cd8080322
Please Coverity (code should be equivalent)
...
The parameter passed to allowDisplayMath will need to be copied, so it
made sense to pass it by value. Since Coverity complains about that,
the code is rewritten to make the copy explicit.
2016-06-09 16:02:39 +02:00