Switch to unified view

a/src/utils/pathut.h b/src/utils/pathut.h
...
...
83
/// Temporary file class
83
/// Temporary file class
84
class TempFileInternal {
84
class TempFileInternal {
85
public:
85
public:
86
    TempFileInternal(const string& suffix);
86
    TempFileInternal(const string& suffix);
87
    ~TempFileInternal();
87
    ~TempFileInternal();
88
    const char *filename() {return m_filename.c_str();}
88
    const char *filename() 
89
    {
90
  return m_filename.c_str();
91
    }
89
    const string &getreason() {return m_reason;}
92
    const string &getreason() 
93
    {
94
  return m_reason;
95
    }
96
    void setnoremove(bool onoff)
97
    {
98
  m_noremove = onoff;
99
    }
100
    bool ok() 
101
    {
90
    bool ok() {return !m_filename.empty();}
102
  return !m_filename.empty();
103
    }
91
private:
104
private:
92
    string m_filename;
105
    string m_filename;
93
    string m_reason;
106
    string m_reason;
107
    bool m_noremove;
94
};
108
};
95
109
96
typedef RefCntr<TempFileInternal> TempFile;
110
typedef RefCntr<TempFileInternal> TempFile;
97
111
98
/// Temporary directory class
112
/// Temporary directory class