]> git.lyx.org Git - lyx.git/commit
Buffer: Make Buffer::readFile() private.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 26 Oct 2010 13:17:10 +0000 (13:17 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 26 Oct 2010 13:17:10 +0000 (13:17 +0000)
commitf311377671fd6197bdebeddde981d0e111f3531e
treedd216a8a1e9d477e08295f28b6deae989fe6dca7
parent9063402fcaaabc114e929afbe212dc5a7a5aabfb
Buffer: Make Buffer::readFile() private.

It's strange to have a public interface which has a function loadLyXFile and a function readFile. A user of this class will be confused about the difference.

Therefore, loadThisLyXFile will be next to loadLyXFile to stress that loadThisLyXFile will not load another file ;). I don't know whether all of you like that this function just calls readFile, but it feels good this way. All public paths for loading a file will now go through loadThisLyXFile (i.e. the paths that come from loadLyXFile), while readFile is a pure private function. If this doesn't make sense, just shout.

I think this improves the readability of the class.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35852 a592a061-630c-0410-9148-cb99ea01b6c8
src/Buffer.cpp
src/Buffer.h