~ubuntu-branches/debian/stretch/gource/stretch

« back to all changes in this revision

Viewing changes to src/commitlog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Caudwell
  • Date: 2011-07-04 10:46:01 UTC
  • mfrom: (1.2.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110704104601-miceapgvk8trbm01
Tags: 0.35-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
RCommitLog::~RCommitLog() {
81
81
    if(logf!=0) delete logf;
82
82
 
83
 
    if(temp_file.size()) {
 
83
    if(!temp_file.empty()) {
84
84
        remove(temp_file.c_str());
85
85
    }
86
86
}
147
147
}
148
148
 
149
149
bool RCommitLog::getNextLine(std::string& line) {
150
 
    if(lastline.size()>0) {
 
150
    if(!lastline.empty()) {
151
151
        line = lastline;
152
152
        lastline = std::string("");
153
153
        return true;