]> git.lyx.org Git - features.git/commit
Replace boost::shared_ptr<TextClass> with a global cache of sorts of the TextClass...
authorRichard Heck <rgheck@comcast.net>
Mon, 25 Feb 2008 19:31:31 +0000 (19:31 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 25 Feb 2008 19:31:31 +0000 (19:31 +0000)
commitb2475f6625efbaacbd574d5b9a2402b4d20c4047
tree241dfebfc937af58d9ba18083b7ebff998fe8d7c
parent4d20376360526d3f1d738aba7fa52bd61aa98dad
Replace boost::shared_ptr<TextClass> with a global cache of sorts of the TextClass's used by Buffers---or, more strictly, constructed by BufferParams::makeTextClass(). The action is in TextClass.{h,cpp}.

I've left the typedef in TextClassPtr.h. At the moment, it's kind of silly. But I've left it mostly because it helps to identify where the TextClass's stored in the TextClassBundle are used, and maybe it'd be worth having some sort of strong typedef like the one for BaseClassIndex here.

I need to check whether the textClass_ member of InsetCollapsable is needed now. I think not.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23232 a592a061-630c-0410-9148-cb99ea01b6c8
src/BufferParams.cpp
src/LyXFunc.cpp
src/LyXFunc.h
src/MenuBackend.cpp
src/TextClass.cpp
src/TextClass.h
src/TextClassPtr.h
src/insets/InsetCollapsable.cpp
src/insets/InsetCollapsable.h
src/insets/InsetFlex.h