[DEBUG] correction of the read write access in the buffer system

This commit is contained in:
2012-11-08 08:43:18 +01:00
parent 841f23a2db
commit 450fc0532d
5 changed files with 19 additions and 20 deletions

View File

@@ -89,10 +89,10 @@ EdnBuf::~EdnBuf(void)
* @return true if OK / false if an error occured
*
*/
bool EdnBuf::DumpIn(FILE *myFile)
bool EdnBuf::DumpIn(etk::FSNode &file)
{
// write Data
return m_data.DumpIn(myFile);
return m_data.DumpIn(file);
}
@@ -104,9 +104,9 @@ bool EdnBuf::DumpIn(FILE *myFile)
* @return true if OK / false if an error occured
*
*/
bool EdnBuf::DumpFrom(FILE *myFile)
bool EdnBuf::DumpFrom(etk::FSNode &file)
{
if (true == m_data.DumpFrom(myFile) ) {
if (true == m_data.DumpFrom(file) ) {
// set no selection
UpdateSelection(0, 0, m_data.Size() );
// generate HighLight

View File

@@ -78,8 +78,8 @@ class EdnBuf {
void SetAll( etk::Vector<int8_t> &text);
void GetRange( int32_t start, int32_t end, etk::Vector<int8_t> &output);
void GetRange( int32_t start, int32_t end, etk::UString &output);
bool DumpIn( FILE *myFile);
bool DumpFrom( FILE *myFile);
bool DumpIn( etk::FSNode &file);
bool DumpFrom( etk::FSNode &file);
// replace with operator [] ...
int8_t operator[] (int32_t);
int32_t Insert( int32_t pos, etk::Vector<int8_t> &insertText);