summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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;