From 3bb31a04dd10cf9e7b2d7514fc281d9eaebc4bf6 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Fri, 29 Oct 2010 23:51:13 +0000 Subject: [PATCH] Remove saveCheckSum from Buffer::reload again. Now, the saveCheckSum call is already in Buffer::readFile, so it is not needed here anymore. Also move the saveCheckSum declaration to the section of functions involving reading/writing. And note that it should be made private. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35925 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 1 - src/Buffer.h | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 48df1bbd99..5bd73da715 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -4123,7 +4123,6 @@ Buffer::ReadStatus Buffer::reload() changed(true); updateTitles(); markClean(); - saveCheckSum(); message(bformat(_("Document %1$s reloaded."), disp_fn)); } else { message(bformat(_("Could not reload document %1$s."), disp_fn)); diff --git a/src/Buffer.h b/src/Buffer.h index 6c5d0d1220..ea4eb49896 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -200,11 +200,13 @@ public: bool readString(std::string const &); /// Reloads the LyX file ReadStatus reload(); -//FIXME: The following function should be private +//FIXME: The following two functions should be private //private: /// read the header, returns number of unknown tokens int readHeader(Lexer & lex); - + /// save timestamp and checksum of the given file. + void saveCheckSum() const; + private: /// read a new file ReadStatus readFile(support::FileName const & fn); @@ -328,9 +330,6 @@ public: /// whether or not disk file has been externally modified bool isExternallyModified(CheckMethod method) const; - /// save timestamp and checksum of the given file. - void saveCheckSum() const; - /// mark the main lyx file as not needing saving void markClean() const; -- 2.39.2