summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-10-28 14:34:02 -0700
committerPixel <pixel@nobis-crew.org>2009-10-28 14:34:02 -0700
commitd3e008a0d913936fee19a79df9924c1e6d7a5bc6 (patch)
tree2d4e6f7240307e989cce9ae8a770c129f9bd07c4 /lib
parentceebadeefd68d37a680f1fa173d4a1f564538acc (diff)
Reducing the String spam...
Diffstat (limited to 'lib')
-rw-r--r--lib/cdutils.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp
index 554cffb..e24814e 100644
--- a/lib/cdutils.cpp
+++ b/lib/cdutils.cpp
@@ -85,7 +85,7 @@ Uint32 cdutils::to_MSF(int sect, Uint32 start) {
return f | (s << 8) | (m << 16);
}
-Handle * cdutils::open_ppf(String ppf, String comment) throw (GeneralException) {
+Handle * cdutils::open_ppf(const String & ppf, const String & comment) throw (GeneralException) {
int i, l;
if (ppf_file)
@@ -151,7 +151,7 @@ void cdutils::set_iso_w(Handle * w) {
f_iso_w = w;
}
-String cdutils::format_date(String input) {
+String cdutils::format_date(const String & input) {
String output;
output = input.extract(6, 7) + '/';
@@ -508,7 +508,7 @@ int cdutils::show_dir(struct DirEntry * dir) {
return 1;
}
-struct cdutils::DirEntry cdutils::find_dir_entry(struct DirEntry * dir, String name) {
+struct cdutils::DirEntry cdutils::find_dir_entry(struct DirEntry * dir, const String & name) {
unsigned int ptr, size;
Uint8 * buffer;
struct DirEntry r = {0, 0, 0, 0, 0};
@@ -541,7 +541,7 @@ struct cdutils::DirEntry cdutils::find_dir_entry(struct DirEntry * dir, String n
return r;
}
-struct cdutils::DirEntry * cdutils::find_dir_entry(Byte ** bufout, struct cdutils::DirEntry * dir, String name) {
+struct cdutils::DirEntry * cdutils::find_dir_entry(Byte ** bufout, struct cdutils::DirEntry * dir, const String & name) {
unsigned int ptr, size;
Byte * buffer;
struct DirEntry * rdir = 0;
@@ -741,7 +741,7 @@ int cdutils::show_pt_infos() {
return 1;
}
-struct cdutils::DirEntry cdutils::find_path(String path) {
+struct cdutils::DirEntry cdutils::find_path(const String & path) {
char * newpath = path.strdup();
char ** pts = split(newpath, '/');
struct DirEntry dir = {0, 0, 0, 0, 0};
@@ -775,7 +775,7 @@ struct cdutils::DirEntry cdutils::find_path(String path) {
return dir;
}
-struct cdutils::DirEntry cdutils::find_parent(String path) {
+struct cdutils::DirEntry cdutils::find_parent(const String & path) {
char * newpath = path.strdup();
char ** pts, * p;
struct DirEntry dir = {0, 0, 0, 0, 0};
@@ -818,7 +818,7 @@ struct cdutils::DirEntry cdutils::find_parent(String path) {
return dir;
}
-struct cdutils::DirEntry * cdutils::find_path(Byte ** bufout, String path) {
+struct cdutils::DirEntry * cdutils::find_path(Byte ** bufout, const String & path) {
char * newpath = path.strdup();
char ** pts = split(newpath, '/');
struct DirEntry * dir;
@@ -859,7 +859,7 @@ struct cdutils::DirEntry * cdutils::find_path(Byte ** bufout, String path) {
return dir;
}
-struct cdutils::DirEntry * cdutils::find_parent(Byte ** bufout, String path) {
+struct cdutils::DirEntry * cdutils::find_parent(Byte ** bufout, const String & path) {
char * newpath = path.strdup();
char ** pts, * p;
struct DirEntry * dir;