]> git.lyx.org Git - features.git/commit
Introduce support/Cache.h
authorGuillaume Munch <gm@lyx.org>
Mon, 20 Feb 2017 22:59:24 +0000 (23:59 +0100)
committerGuillaume Munch <gm@lyx.org>
Mon, 20 Feb 2017 23:06:07 +0000 (00:06 +0100)
commit33b696c8acf2e64b44d449180781de6dbc203709
treeee516f484e313299d93a4ad562ffce6afce52442
parent9a54376aef45144213d2958ea643628c1b340e17
Introduce support/Cache.h

Useful to cache copies of objects, including shared_ptrs. No risks of dangling
pointer, and avoid naked pointers in the source.

Fix memory leak when compiling with Qt5.
src/frontends/qt4/GuiFontMetrics.cpp
src/frontends/qt4/GuiFontMetrics.h
src/frontends/qt4/GuiPainter.cpp
src/support/Cache.h [new file with mode: 0644]
src/support/Makefile.am