From 52be1ef0d126f09ba943c7afcf367e7d9347f2fd Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 8 Nov 2012 22:58:28 +0000 Subject: tabconv: it's all spaces now. --- src/filemgr.cpp | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'src/filemgr.cpp') diff --git a/src/filemgr.cpp b/src/filemgr.cpp index 00f0410..16f2ba7 100644 --- a/src/filemgr.cpp +++ b/src/filemgr.cpp @@ -1,46 +1,46 @@ #include "filemgr.h" FileMgr::FileMgr() : - iNextId( 1 ) + iNextId( 1 ) { } FileMgr::~FileMgr() { - for( FileHash::iterator i = hFile.begin(); i; i++ ) - { - delete *i; - } + for( FileHash::iterator i = hFile.begin(); i; i++ ) + { + delete *i; + } } int FileMgr::open( const Bu::String &sPath, int iMode ) { - hFile.insert( iNextId, new Bu::File( sPath, iMode ) ); - return iNextId++; + hFile.insert( iNextId, new Bu::File( sPath, iMode ) ); + return iNextId++; } Bu::File &FileMgr::get( int iId ) { - try - { - return *hFile.get( iId ); - } - catch(...) - { - throw Bu::ExceptionBase("Invalid file handle accessed."); - } + try + { + return *hFile.get( iId ); + } + catch(...) + { + throw Bu::ExceptionBase("Invalid file handle accessed."); + } } void FileMgr::close( int iId ) { - try - { - delete hFile.get( iId ); - hFile.erase( iId ); - } - catch(...) - { - throw Bu::ExceptionBase("Invalid file handle accessed."); - } + try + { + delete hFile.get( iId ); + hFile.erase( iId ); + } + catch(...) + { + throw Bu::ExceptionBase("Invalid file handle accessed."); + } } -- cgit v1.2.3