]> git.lyx.org Git - lyx.git/log
lyx.git
8 years agoAdd xmingw and LyXDestinations.cmake to distribution files
Kornel Benko [Wed, 15 Jun 2016 11:03:25 +0000 (13:03 +0200)]
Add xmingw and LyXDestinations.cmake to distribution files

8 years agoCmake windows build: Discard use of configCompiler.h.msvc
Kornel Benko [Wed, 15 Jun 2016 09:29:09 +0000 (11:29 +0200)]
Cmake windows build: Discard use of configCompiler.h.msvc

This file doubles the struggle when inventing new configuration tests.
Hopefully we get soon a confirmation if the withdraw is OK.

8 years agoCmake dist: Expand the list of not distributed files.
Kornel Benko [Wed, 15 Jun 2016 08:21:18 +0000 (10:21 +0200)]
Cmake dist: Expand the list of not distributed files.

8 years agoWhitespace.
Richard Heck [Tue, 14 Jun 2016 23:23:34 +0000 (00:23 +0100)]
Whitespace.

8 years agoAdd missing images to source package
Georg Baum [Tue, 14 Jun 2016 20:30:26 +0000 (22:30 +0200)]
Add missing images to source package

Thanks to Kornel for noticing.
We cannot use ${x} style variables with autotools, these work only in the
final Makefile. We need to use $(x).

8 years agoReplace coverity comment with assertion.
Richard Heck [Tue, 14 Jun 2016 17:26:08 +0000 (18:26 +0100)]
Replace coverity comment with assertion.

8 years agoFix compilation with gcc 4.6
Guillaume Munch [Tue, 14 Jun 2016 15:42:52 +0000 (16:42 +0100)]
Fix compilation with gcc 4.6

8 years agoFix bug #10195
Guillaume Munch [Mon, 13 Jun 2016 23:17:38 +0000 (00:17 +0100)]
Fix bug #10195

The computation of the index of the main text entry of a row did not take into
account the fact that the entry could be optimised away.

8 years agoamend 6144bbfb
Guillaume Munch [Tue, 14 Jun 2016 00:34:16 +0000 (01:34 +0100)]
amend 6144bbfb

8 years agoamend e2bc7ffa
Guillaume Munch [Mon, 13 Jun 2016 23:21:26 +0000 (00:21 +0100)]
amend e2bc7ffa

8 years agoDetect clang version in autoconf (and use it a bit)
Jean-Marc Lasgouttes [Mon, 13 Jun 2016 09:25:23 +0000 (11:25 +0200)]
Detect clang version in autoconf (and use it a bit)

The version is read by checking the macros __clang_major__,
__clang_minor__ and __clang_patchlevel__. Hopefully they will have
coherent values everywhere.

For now, the version is used to set warnings a bit more reasonably for
older clang versions, which do not support -Wdeprecated-register and
some others that are used in pragmas in boost.

This removes many warnings when compiling with clang 3.3.

8 years agoRemove a conversion to_utf8() inside FontSetChanger
Guillaume Munch [Tue, 7 Jun 2016 21:58:55 +0000 (22:58 +0100)]
Remove a conversion to_utf8() inside FontSetChanger

This requires to change many docstrings into std::strings. The logic behind that
is that they represent a fixed set of math fonts, and therefore “string” means
here “poor man's enum” rather than text (this is consistent with MetricsBase).

Profiling of scrolling inside a document over macro-instensive areas:

Before the patch:
  44,1% BufferView::updateMetrics()
   -> 34,8% InsetMathHull::metrics()
     -> 9,8% FontSetChanger::FontSetChanger()
  28,4% BufferView::draw()

After the patch:
  35,3% BufferView::updateMetrics()
   -> 27,2% InsetMathHull::metrics
     -> 0,4% FontSetChanger::FontSetChanger()
  47,5% BufferView::draw()

FontSetChanger::FontSetChanger() is made 41x less expensive (with reference
BV::draw()) just by removing this conversion. The remaining 0,4% could be
squished by replacing the strings with a proper enum, but this is premature. Of
course, this only treats the symptoms: there is no good reason that this
function is called 45500 times over the time of 40 repaints.

8 years agoScrollbarParameters: clean-up and document
Guillaume Munch [Wed, 1 Jun 2016 20:28:26 +0000 (21:28 +0100)]
ScrollbarParameters: clean-up and document

Position is always 0.

8 years agoFix computation of scroll value
Guillaume Munch [Fri, 27 May 2016 22:59:25 +0000 (23:59 +0100)]
Fix computation of scroll value

8 years agoSimplify the TexRow information for mathed output
Guillaume Munch [Sat, 4 Jun 2016 09:49:21 +0000 (10:49 +0100)]
Simplify the TexRow information for mathed output

Replace the manual manipulation of a stack of RowEntries with a Changer
function. When I introduced the stack of RowEntries, I did not know about the
Changer mechanism.

8 years agoDo not include MetricsInfo.h in MathStream.h
Guillaume Munch [Sat, 4 Jun 2016 08:41:13 +0000 (09:41 +0100)]
Do not include MetricsInfo.h in MathStream.h

Fixes the FIXME in MathStream.h

8 years agoChange tracking cue: paint over labels in text and prepare for further work
Guillaume Munch [Sun, 22 May 2016 21:48:28 +0000 (22:48 +0100)]
Change tracking cue: paint over labels in text and prepare for further work

* Inset::canTrackChange() had two meanings: can it deal with change tracking?
  Will it paint its own CT status? The latter information is now given by
  Inset::canPaintChange().

* Line thickness computation is moved from RowPainter to MetricsBase.

* Painting function for Changes moved to lyx::Change. (One new, that strikes
  diagonally.)

8 years agoRefChanger
Guillaume Munch [Mon, 23 May 2016 21:30:23 +0000 (22:30 +0100)]
RefChanger

RefChanger temporarily assigns a value to a non-const reference of any
kind. RefChanger provides a flexible and uniform generalisation of the various
scope guards previously derived from the old Changer class in MetricsInfo.h.

As before, a temporary assignment lasts as long as the Changer object lives. But
the new Changer is movable. In particular, contorsions are no longer needed to
change a private field. Special code can be moved into the appropriate classes,
and it is no longer necessary to create a new class for each specific use.

Syntax change:

   FontSetChanger dummy(mi.base, value);
-> Changer dummy = mi.base.changeFontSet(value);

New function for generating arbitrary Changers:

  Changer dummy = make_change(ref, val, condition);

Bugfix:

* Fix the display of \displaystyle{\substack{\frac{xyz}{}}} (missing style
  change).

8 years agoShortcutOverride again
Guillaume Munch [Mon, 13 Jun 2016 06:39:04 +0000 (07:39 +0100)]
ShortcutOverride again

Re: fix for #9218 (not #10119)

Now it matches the example given in the docs. This time tested on qt4.

8 years ago* Math.lyx put last changes under CT.
Pavel Sanda [Mon, 13 Jun 2016 01:57:58 +0000 (18:57 -0700)]
* Math.lyx put last changes under CT.

8 years agoMake lyx2lyx infrastructure python3 ready
Georg Baum [Sun, 12 Jun 2016 19:21:15 +0000 (21:21 +0200)]
Make lyx2lyx infrastructure python3 ready

The LyX class works now with python 3. Certain file format conversions may
still fail (convert_multiencoding() is a hot candidate), but this will need
to be fixed in the individual modules.

8 years agoRemove that pesky broken window that pops up with Qt5 when saving preferences
Guillaume Munch [Sat, 11 Jun 2016 09:54:30 +0000 (10:54 +0100)]
Remove that pesky broken window that pops up with Qt5 when saving preferences

It turns out this show event is not necessary (tested with Qt4.8 and Qt5)

8 years agoAdd perf comment
Guillaume Munch [Sat, 11 Jun 2016 08:14:38 +0000 (09:14 +0100)]
Add perf comment

8 years agoToc: clean-up
Guillaume Munch [Thu, 2 Jun 2016 20:40:11 +0000 (21:40 +0100)]
Toc: clean-up

8 years agoReplace foreach with for
Guillaume Munch [Thu, 9 Jun 2016 20:54:31 +0000 (21:54 +0100)]
Replace foreach with for

C++11 allows foreach-style iterations with the following syntax:

for (auto & element : container) {
 ...
}

8 years agoclimits
Guillaume Munch [Sat, 11 Jun 2016 11:13:00 +0000 (12:13 +0100)]
climits

It's as you prefer, Jean-Marc.

8 years agorewrite 51a15c45
Guillaume Munch [Sat, 11 Jun 2016 07:21:38 +0000 (08:21 +0100)]
rewrite 51a15c45

Poor wording

8 years agoCmake build: Check for make_unique and PATH_MAX symbols added.
Kornel Benko [Sun, 12 Jun 2016 17:56:31 +0000 (19:56 +0200)]
Cmake build: Check for make_unique and PATH_MAX symbols added.

8 years agoUse iostream instead of sstream and move it from header to cpp-source of LyX-Server
Stephan Witt [Sun, 12 Jun 2016 11:03:06 +0000 (13:03 +0200)]
Use iostream instead of sstream and move it from header to cpp-source of LyX-Server

8 years agoWhen we use InPremable styles, we want to write as many versions
Richard Heck [Sun, 12 Jun 2016 04:58:33 +0000 (00:58 -0400)]
When we use InPremable styles, we want to write as many versions
to the premable as the user enters.

8 years agoAdd comments to fix coverity #23505 and 23507.
Richard Heck [Sun, 12 Jun 2016 04:34:35 +0000 (00:34 -0400)]
Add comments to fix coverity #23505 and 23507.

8 years agoAdd comment to fix coverity #111935.
Richard Heck [Sun, 12 Jun 2016 04:31:33 +0000 (00:31 -0400)]
Add comment to fix coverity #111935.

8 years agoFix coverity issue #127197.
Richard Heck [Sun, 12 Jun 2016 04:26:38 +0000 (00:26 -0400)]
Fix coverity issue #127197.

We may fail to get a buffer when we request one.

8 years agoAdd comment about coverity #102061.
Richard Heck [Sun, 12 Jun 2016 04:22:09 +0000 (00:22 -0400)]
Add comment about coverity #102061.

8 years agoAdd a check to please coverity.
Richard Heck [Sun, 12 Jun 2016 04:12:03 +0000 (00:12 -0400)]
Add a check to please coverity.

Fixes #23496.

8 years agoFix a number of other uninitialized members.
Richard Heck [Sun, 12 Jun 2016 03:39:45 +0000 (23:39 -0400)]
Fix a number of other uninitialized members.

Fixes coverity #23392, 23394, 23397, 23403, 23414, 23424,
23448, 23477.

8 years agoAdd comment to fix coverity #23438.
Richard Heck [Sun, 12 Jun 2016 03:47:54 +0000 (23:47 -0400)]
Add comment to fix coverity #23438.

8 years agoInitialize a bunch of uninitialized members. It does not seem to
Richard Heck [Sun, 12 Jun 2016 03:30:33 +0000 (23:30 -0400)]
Initialize a bunch of uninitialized members. It does not seem to
matter what they are initialized to. Fixes coverity #23391.

8 years agoAdd some comments to fix coverity #23386.
Richard Heck [Sun, 12 Jun 2016 03:26:02 +0000 (23:26 -0400)]
Add some comments to fix coverity #23386.

8 years agoFalse positive on coverity #23366.
Richard Heck [Sun, 12 Jun 2016 03:13:01 +0000 (23:13 -0400)]
False positive on coverity #23366.

8 years agoAdd a LATTEST, just in case this ever causes a problem.
Richard Heck [Sun, 12 Jun 2016 03:08:54 +0000 (23:08 -0400)]
Add a LATTEST, just in case this ever causes a problem.

Fixes coverity #23363.

8 years agoCheck to make sure we have a preview loader.
Richard Heck [Sun, 12 Jun 2016 03:03:15 +0000 (23:03 -0400)]
Check to make sure we have a preview loader.

Fixes coverity #23353.

8 years agoAdd comment fixing coverity #23351.
Richard Heck [Sun, 12 Jun 2016 03:01:21 +0000 (23:01 -0400)]
Add comment fixing coverity #23351.

8 years agoAdd comment about coverity #23335.
Richard Heck [Sun, 12 Jun 2016 02:59:01 +0000 (22:59 -0400)]
Add comment about coverity #23335.

8 years agoAdd comment to fix coverity #23308
Richard Heck [Sun, 12 Jun 2016 02:54:15 +0000 (22:54 -0400)]
Add comment to fix coverity #23308

8 years agoMake sure we have a buffer in VC_COMPARE.
Richard Heck [Sun, 12 Jun 2016 02:41:57 +0000 (22:41 -0400)]
Make sure we have a buffer in VC_COMPARE.

Fixes coverity #23304.

8 years agoAdd comment for coverity, fixing #23307.
Richard Heck [Sun, 12 Jun 2016 02:49:23 +0000 (22:49 -0400)]
Add comment for coverity, fixing #23307.

8 years agoMark a number of coverity false positives.
Richard Heck [Sun, 12 Jun 2016 02:38:57 +0000 (22:38 -0400)]
Mark a number of coverity false positives.

Fixes coverity #23284, 23285, 23286, 23287, 23289.

8 years agoAdd a comment and FIXME that lualatex can make DVI
Scott Kostyshak [Sat, 11 Jun 2016 21:05:28 +0000 (17:05 -0400)]
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.

8 years ago* Math.lyx : add few maxima examples to ch. 23.1.
Pavel Sanda [Sat, 11 Jun 2016 18:23:39 +0000 (11:23 -0700)]
* Math.lyx : add few maxima examples to ch. 23.1.

8 years agoImprove comments and add missing decoding call
Georg Baum [Sat, 11 Jun 2016 12:45:18 +0000 (14:45 +0200)]
Improve comments and add missing decoding call

We do already fill the first line of the body in the first pass, so the body
has to be converted to the correct encoding as well.

8 years agofix #10199 Non-encodable characters with XeTeX and utf8-plain
Günter Milde [Sat, 11 Jun 2016 11:54:33 +0000 (13:54 +0200)]
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).

8 years agoCmake build: Correct wrong comment
Kornel Benko [Sat, 11 Jun 2016 10:44:15 +0000 (12:44 +0200)]
Cmake build: Correct wrong comment

8 years agoCmake build: Determine availability of 'std::regex' if using clang compiler
Kornel Benko [Sat, 11 Jun 2016 10:23:33 +0000 (12:23 +0200)]
Cmake build: Determine availability of 'std::regex' if using clang compiler

8 years agoSome python 3 fixes for lyx2lyx
Georg Baum [Sat, 11 Jun 2016 09:06:11 +0000 (11:06 +0200)]
Some python 3 fixes for lyx2lyx

These were found by 2to3 and later adapted to use the compatibility code
which was already used in some parts of lyx2lyx, e.g. lyx_1_5.py.

8 years agoFix linking with std::regex and included boost
Georg Baum [Sat, 11 Jun 2016 08:09:48 +0000 (10:09 +0200)]
Fix linking with std::regex and included boost

8 years agoAdd missing includes after change to boost signals2
Stephan Witt [Sat, 11 Jun 2016 07:56:35 +0000 (09:56 +0200)]
Add missing includes after change to boost signals2

8 years agoDo not try to build an empty boost lib
Georg Baum [Sat, 11 Jun 2016 07:28:11 +0000 (09:28 +0200)]
Do not try to build an empty boost lib

This should fix a build failure on OS X:
Making all in boost
  AR       liblyxboost.a
  ar: no archive members specified

8 years agoSkip boost linking test if not needed
Georg Baum [Sat, 11 Jun 2016 07:20:16 +0000 (09:20 +0200)]
Skip boost linking test if not needed

We only link against boost libraries if we do not use std::regex.
Therefore, we do not need to test how to link against boost libs unconditionally.
Also, the warning regarding stdlib-debug is only needed if we link against boost.

8 years agoGet rid of boost signals in multithreading test
Georg Baum [Sat, 11 Jun 2016 07:04:50 +0000 (09:04 +0200)]
Get rid of boost signals in multithreading test

Test for regex instead since this is the only boost library we are linking against.

8 years agoFix silly error outputting math sizes. Fixes bug #10129.
Richard Heck [Sat, 11 Jun 2016 04:48:55 +0000 (00:48 -0400)]
Fix silly error outputting math sizes. Fixes bug #10129.

8 years agoFix bug #10119
Guillaume Munch [Wed, 1 Jun 2016 17:27:36 +0000 (18:27 +0100)]
Fix bug #10119

This makes Qt 5.4 as usable as Qt 5.5.1 in my experience. Otherwise, fix again
INSTALL.

8 years agoClarify Qt requirements for 2.3
Guillaume Munch [Sat, 11 Jun 2016 04:25:34 +0000 (05:25 +0100)]
Clarify Qt requirements for 2.3

As discussed on the list. If the needs to drop Qt 4.8 arises, then this should
be discussed again.

8 years agoAdd missing header
Guillaume Munch [Sat, 11 Jun 2016 04:08:23 +0000 (05:08 +0100)]
Add missing header

Spotted by jkulesza

8 years agoRestore last selected label when using the "go to label" feature
Richard Heck [Mon, 6 Jun 2016 23:36:27 +0000 (19:36 -0400)]
Restore last selected label when using the "go to label" feature
of the reference dialog.

8 years agoCmake build: Finetune some destination data paths on UNIX
Kornel Benko [Fri, 10 Jun 2016 11:38:29 +0000 (13:38 +0200)]
Cmake build: Finetune some destination data paths on UNIX

8 years agoAllow to disable std::regex manually with autoconf
Jean-Marc Lasgouttes [Fri, 10 Jun 2016 09:58:11 +0000 (11:58 +0200)]
Allow to disable std::regex manually with autoconf

Update INSTALL and remove mention of --disable-cxx11.

8 years agoReplace Boost.Signals with Boost.Signals2
Georg Baum [Thu, 9 Jun 2016 20:25:34 +0000 (22:25 +0200)]
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.

8 years agoRerun extract.sh to get rid of more boost
Georg Baum [Thu, 9 Jun 2016 18:47:19 +0000 (20:47 +0200)]
Rerun extract.sh to get rid of more boost

After the latest changes we require less parts of boost, but unfortunaly the
effect is only small.

8 years agoExercise: simplify the definition of IconvProcessor
Guillaume Munch [Thu, 2 Jun 2016 21:27:52 +0000 (22:27 +0100)]
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.

8 years agoRemove non-copyable idioms
Guillaume Munch [Thu, 2 Jun 2016 19:38:15 +0000 (20:38 +0100)]
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.

8 years agoMissing headers
Guillaume Munch [Thu, 9 Jun 2016 15:09:14 +0000 (16:09 +0100)]
Missing headers

Found by Jean-Marc

8 years agoInitialize GuiDocument:biblioChanged_ in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:38:30 +0000 (17:38 +0200)]
Initialize GuiDocument:biblioChanged_ in constructor

Found by Coverity

8 years agoInitialize correctly SystemcallPrivate in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:34:14 +0000 (17:34 +0200)]
Initialize correctly SystemcallPrivate in constructor

It seems that Error is the best possibility when nothing has been done yet.

Found by Coverity

8 years agoInitialize bool member of Package in default constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:26:55 +0000 (17:26 +0200)]
Initialize bool member of Package in default constructor

Found by Coverity

8 years agoInitialize properly InsetTabular members in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:23:27 +0000 (17:23 +0200)]
Initialize properly InsetTabular members in constructor

Found by Coverity

8 years agoInitialize Parse::theCatCode_ in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:11:41 +0000 (17:11 +0200)]
Initialize Parse::theCatCode_ in constructor

Normally, it is done before tokenizing, but it does not hurt to do it
even before.

Found by Coverity.

8 years agoInitialize FindAndReplaceOptions in default constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 15:05:24 +0000 (17:05 +0200)]
Initialize FindAndReplaceOptions in default constructor

Found by coverity

8 years agoInitialize correctly GuiErrorList::from_master_ in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:58:13 +0000 (16:58 +0200)]
Initialize correctly GuiErrorList::from_master_ in constructor

Found by Coverity

8 years agoInitialize InsetExteralParams::preview_mode in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:51:07 +0000 (16:51 +0200)]
Initialize InsetExteralParams::preview_mode in constructor

The value PREVIEW_OFF is the same default as for external::Template.

Found by Coverity

8 years agoInitialize GuiSendto::format_ in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:44:56 +0000 (16:44 +0200)]
Initialize GuiSendto::format_ in constructor

Found by Coverity.

8 years agoAlways initialize InsetQuote language in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:42:24 +0000 (16:42 +0200)]
Always initialize InsetQuote language in constructor

Found by Coverity

8 years agoInitialize some GuiTabular members in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:38:32 +0000 (16:38 +0200)]
Initialize some GuiTabular members in constructor

Found by Coverity.

8 years agoInitialize ScopeBuffer::buffer member in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:34:25 +0000 (16:34 +0200)]
Initialize ScopeBuffer::buffer member in constructor

Found by Coverity.

8 years agoInitialize LyXModule::available_ in constructor
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:25:02 +0000 (16:25 +0200)]
Initialize LyXModule::available_ in constructor

Found by Coverity.

8 years agoReplace boost::tuple with std::tuple
Guillaume Munch [Thu, 2 Jun 2016 19:06:59 +0000 (20:06 +0100)]
Replace boost::tuple with std::tuple

8 years agoReplace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr
Guillaume Munch [Thu, 2 Jun 2016 17:13:55 +0000 (18:13 +0100)]
Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr

shared_ptrs now only require the <memory> header.

8 years agoReplace boost::scoped_ptr with unique_ptr
Guillaume Munch [Thu, 2 Jun 2016 22:49:36 +0000 (23:49 +0100)]
Replace boost::scoped_ptr with unique_ptr

8 years agoAutotools: restore deprecation warning
Guillaume Munch [Thu, 2 Jun 2016 17:00:22 +0000 (18:00 +0100)]
Autotools: restore deprecation warning

-Wno-deprecated-declarations was added at 314a121c.

8 years agoReplace auto_ptr with unique_ptr
Guillaume Munch [Thu, 2 Jun 2016 20:58:52 +0000 (21:58 +0100)]
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.

8 years agounique_ptr and make_unique
Guillaume Munch [Tue, 24 May 2016 22:25:41 +0000 (23:25 +0100)]
unique_ptr and make_unique

8 years agoInitialize all MathMacroTemplate members in constructors
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:19:31 +0000 (16:19 +0200)]
Initialize all MathMacroTemplate members in constructors

Found by coverity.

8 years agoPlease Coverity (code should be equivalent)
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 14:02:39 +0000 (16:02 +0200)]
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.

8 years agoAnnotate source code to please coverity
Jean-Marc Lasgouttes [Thu, 9 Jun 2016 13:51:07 +0000 (15:51 +0200)]
Annotate source code to please coverity

This code is signalled as a copy and paste error, but it is a false
positive.

According to the documentation, adding a comment starting with
  // coverity[name_of_error]
should be enough to flag the false positive.

8 years agoFix right_boundary properly after a row is shortened
Jean-Marc Lasgouttes [Mon, 6 Jun 2016 12:01:02 +0000 (14:01 +0200)]
Fix right_boundary properly after a row is shortened

Instead of resetting it to false, do a proper test to see whether
there is a separator at the end of the row.

Fixes bug #10180.

8 years agoImprove build for FreeBSD.
Pavel Sanda [Thu, 9 Jun 2016 02:33:08 +0000 (19:33 -0700)]
Improve build for FreeBSD.

Patch from Shankar Giri Venkita Giri.

8 years agoWin installer: new version with Qt 5.6.1
Uwe Stöhr [Thu, 9 Jun 2016 00:14:28 +0000 (02:14 +0200)]
Win installer: new version with Qt 5.6.1

- the update to JabRef 3.4 which fixes installation problems if user has no admin privileges
- also update MiKTeX and ImageMagick

8 years agoAdd missing backslashes
Georg Baum [Wed, 8 Jun 2016 20:17:14 +0000 (22:17 +0200)]
Add missing backslashes

Found by 2to3, but useful for python2 as well for consistency reasons.

8 years agoMake scripts python3 compatible
Georg Baum [Wed, 8 Jun 2016 18:02:33 +0000 (20:02 +0200)]
Make scripts python3 compatible

Again using 2to3 and manual checking

8 years agoMake configure.py python3 compatible
Georg Baum [Wed, 8 Jun 2016 17:29:15 +0000 (19:29 +0200)]
Make configure.py python3 compatible

This was done using 2to3 and manual tweaking afterwards to ensure that it
works with python2 as well.