Changeset 19061

Show
Ignore:
Timestamp:
20.04.2009 10:11:35 (10 years ago)
Author:
kjdon
Message:

changed a couple of comments and a bit of indentation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/common-src/src/lib/gdbmclass.cpp

    r18880 r19061  
    7272  if (gdbm_mode == GDBM_READER) 
    7373  { 
    74     // make sure we have the right file extension. Should be db (for systems dbs, and gdb for collection dbs. But need to handle old style ldb/bdb 
     74    // make sure we have the right file extension. Should be all gdb now. 
     75    // But need to handle old style ldb/bdb collection dbs 
    7576 
    7677    // If the specified GDBM file doesn't exist, (should be gdb) try the other extensions (we can now read both) 
    7778    if (!file_exists(gdbm_filename)) 
    7879    { 
     80      // should be all gdb now 
    7981      if (ends_with(gdbm_filename, ".gdb")) { 
    80     // only try ldb and bdb for collection dbs, not system dbs which are .db 
    8182    gdbm_filename = substr(gdbm_filename.begin(), gdbm_filename.end() - ((text_t) ".gdb").size()) + ".ldb";  
    82        
     83     
    8384    if (!file_exists(gdbm_filename)) { 
    8485      // try bdb as well 
     
    298299      text_t::const_iterator begin = filename.begin(); 
    299300      text_t::const_iterator end= filename.end(); 
    300        
    301       if (begin != end) 
    302         { 
    303         end = end - 1; 
    304         } 
     301       
     302      if (begin != end) { 
     303    end = end - 1; 
     304      } 
    305305         
    306306      text_t::const_iterator here = end;