diff options
author | Pixel <pixel@nobis-crew.org> | 2009-10-28 14:34:02 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-10-28 14:34:02 -0700 |
commit | d3e008a0d913936fee19a79df9924c1e6d7a5bc6 (patch) | |
tree | 2d4e6f7240307e989cce9ae8a770c129f9bd07c4 /includes/cdutils.h | |
parent | ceebadeefd68d37a680f1fa173d4a1f564538acc (diff) |
Reducing the String spam...
Diffstat (limited to 'includes/cdutils.h')
-rw-r--r-- | includes/cdutils.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/cdutils.h b/includes/cdutils.h index c3053a6..3666491 100644 --- a/includes/cdutils.h +++ b/includes/cdutils.h @@ -79,7 +79,7 @@ class cdutils : public Base { struct DirEntry * rootDir; - Handle * open_ppf(String ppf, String comment) throw(GeneralException); + Handle * open_ppf(const String & ppf, const String & comment) throw(GeneralException); void close_ppf() throw(GeneralException); void set_iso_w(Handle *); static Uint16 swap_word(Uint16 i); @@ -105,15 +105,15 @@ class cdutils : public Base { int show_iso_infos(); int get_pt_infos(); int show_pt_infos(); - struct DirEntry find_path(String path); - struct DirEntry find_parent(String path); - struct DirEntry * find_path(Byte ** buffer, String path); - struct DirEntry * find_parent(Byte ** buffer, String path); + struct DirEntry find_path(const String & path); + struct DirEntry find_parent(const String & path); + struct DirEntry * find_path(Byte ** buffer, const String & path); + struct DirEntry * find_parent(Byte ** buffer, const String & path); void show_head_entry(void); int show_entry(struct DirEntry * dir); int show_dir(struct DirEntry * dir); - struct DirEntry find_dir_entry(struct DirEntry * dir, String name); - struct DirEntry * find_dir_entry(Byte ** buffer, struct DirEntry * dir, String name); + struct DirEntry find_dir_entry(struct DirEntry * dir, const String & name); + struct DirEntry * find_dir_entry(Byte ** buffer, struct DirEntry * dir, const String & name); static Uint8 from_BCD(Uint8 x); static Uint8 to_BCD(Uint8 x); static bool is_valid_BCD(Uint8 x); @@ -123,7 +123,7 @@ class cdutils : public Base { static void to_MSF(int sect, Uint8 & m, Uint8 & s, Uint8 & f, Uint32 start = 150); private: void write_ppf(Byte * old_sec, Byte * new_sec, int sec_num); - String format_date(String input); + String format_date(const String & input); yazedc yazedc_o; Handle * f_iso_r, * f_iso_w, * ppf_file; |