Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle
This commit is contained in:
@@ -8,19 +8,23 @@
|
||||
Glib::RefPtr<Gdk::Pixbuf> safe_create_from_file(const Glib::ustring& filename);
|
||||
Cairo::RefPtr<Cairo::ImageSurface> safe_create_from_png(const Glib::ustring& filename);
|
||||
|
||||
class FileMTimeInfo {
|
||||
class FileMTimeInfo
|
||||
{
|
||||
|
||||
public:
|
||||
Glib::ustring fname;
|
||||
Glib::TimeVal mtime;
|
||||
|
||||
FileMTimeInfo (Glib::ustring name, Glib::TimeVal mtime) : fname(name), mtime(mtime) {}
|
||||
bool operator<(const FileMTimeInfo& other) const { return mtime<other.mtime; }
|
||||
public:
|
||||
Glib::ustring fname;
|
||||
Glib::TimeVal mtime;
|
||||
|
||||
FileMTimeInfo (Glib::ustring name, Glib::TimeVal mtime) : fname(name), mtime(mtime) {}
|
||||
bool operator<(const FileMTimeInfo& other) const
|
||||
{
|
||||
return mtime < other.mtime;
|
||||
}
|
||||
};
|
||||
|
||||
Glib::RefPtr<Gio::FileInfo> safe_query_file_info (Glib::RefPtr<Gio::File> &file);
|
||||
void safe_build_file_list (Glib::RefPtr<Gio::File> &dir, std::vector<FileMTimeInfo> &flist);
|
||||
void safe_build_file_list (Glib::RefPtr<Gio::File> &dir, std::vector<Glib::ustring> &names, const Glib::ustring &directory = "", const std::vector<Glib::ustring> *extensions=NULL);
|
||||
void safe_build_file_list (Glib::RefPtr<Gio::File> &dir, std::vector<Glib::ustring> &names, const Glib::ustring &directory = "", const std::vector<Glib::ustring> *extensions = NULL);
|
||||
void safe_build_subdir_list (Glib::RefPtr<Gio::File> &dir, std::vector<Glib::ustring> &subDirs, bool add_hidden);
|
||||
|
||||
bool safe_spawn_command_line_async (const Glib::ustring& cmd_utf8);
|
||||
@@ -31,7 +35,7 @@ Glib::ustring safe_locale_to_utf8 (const std::string& src); // from rtengine
|
||||
std::string safe_locale_from_utf8 (const Glib::ustring& utf8_str);
|
||||
std::string safe_filename_from_utf8 (const Glib::ustring& utf8_str);
|
||||
|
||||
FILE * safe_g_fopen(const Glib::ustring& src,const gchar *mode);
|
||||
FILE * safe_g_fopen(const Glib::ustring& src, const gchar *mode);
|
||||
FILE * safe_g_fopen_WriteBinLock(const Glib::ustring& fname);
|
||||
int safe_open_ReadOnly(const char *fname);
|
||||
|
||||
|
Reference in New Issue
Block a user