go from 'experienced user' right to 'hacker' level...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4492 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-06-26 19:07:34 +00:00
parent 4bc59f2101
commit 2b2b6f6162
2 changed files with 13 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2002-06-26 André Pönitz <poenitz@gmx.net>
* filetools.[Ch]: small whitespace, more compact 'return' statement
2002-06-19 John Levon <moz@compsoc.man.ac.uk>
* lyxalgo.h: add eliminate_duplicates

View File

@ -128,13 +128,10 @@ string const QuoteName(string const & name)
// Is a file readable ?
bool IsFileReadable (string const & path)
bool IsFileReadable(string const & path)
{
FileInfo file(path);
if (file.isOK() && file.isRegular() && file.readable())
return true;
else
return false;
return file.isOK() && file.isRegular() && file.readable();
}
@ -142,7 +139,7 @@ bool IsFileReadable (string const & path)
// return 1 read-write
// 0 read_only
// -1 error (doesn't exist, no access, anything else)
int IsFileWriteable (string const & path)
int IsFileWriteable(string const & path)
{
FileInfo fi(path);
@ -156,7 +153,7 @@ int IsFileWriteable (string const & path)
//returns true: dir writeable
// false: not writeable
bool IsDirWriteable (string const & path)
bool IsDirWriteable(string const & path)
{
lyxerr[Debug::FILES] << "IsDirWriteable: " << path << endl;
@ -175,10 +172,11 @@ bool IsDirWriteable (string const & path)
// If path entry begins with $$LyX/, use system_lyxdir
// If path entry begins with $$User/, use user_lyxdir
// Example: "$$User/doc;$$LyX/doc"
string const FileOpenSearch (string const & path, string const & name,
string const FileOpenSearch(string const & path, string const & name,
string const & ext)
{
string real_file, path_element;
string real_file;
string path_element;
bool notfound = true;
string tmppath = split(path, path_element, ';');
@ -421,7 +419,7 @@ bool PutEnvPath(string const & envstr)
namespace {
int DeleteAllFilesInDir (string const & path)
int DeleteAllFilesInDir(string const & path)
{
// I have decided that we will be using parts from the boost
// library. Check out http://www.boost.org/