summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 49df4b8)
raw | patch | inline | side by side (parent: 49df4b8)
author | pjrm <pjrm@users.sourceforge.net> | |
Thu, 11 Oct 2007 14:05:24 +0000 (14:05 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Thu, 11 Oct 2007 14:05:24 +0000 (14:05 +0000) |
src/io/uristream.cpp | patch | blob | history |
diff --git a/src/io/uristream.cpp b/src/io/uristream.cpp
index e06498d527ddc5d84e8f9bb7072130f6781a4785..9787620dbd27b2eca2135103385fb3b7420e7948 100644 (file)
--- a/src/io/uristream.cpp
+++ b/src/io/uristream.cpp
throw (StreamException): uri(source)
{
//get information from uri
- char *schemestr = (char *) uri.getScheme();
+ char const *schemestr = uri.getScheme();
scheme = SCHEME_FILE;
if (!schemestr || strncmp("file", schemestr, 4)==0)
scheme = SCHEME_FILE;
else if (strncmp("data", schemestr, 4)==0)
scheme = SCHEME_DATA;
//printf("in schemestr:'%s' scheme:'%d'\n", schemestr, scheme);
- char *cpath = NULL;
+ gchar *cpath = NULL;
switch (scheme) {
case SCHEME_FILE:
- cpath = (char *) uri.toNativeFilename();
+ cpath = uri.toNativeFilename();
//printf("in cpath:'%s'\n", cpath);
inf = fopen_utf8name(cpath, FILE_READ);
//inf = fopen(cpath, "rb");
scheme(SCHEME_FILE)
{
//get information from uri
- char *schemestr = (char *) uri.getScheme();
+ char const *schemestr = uri.getScheme();
if (!schemestr || strncmp("file", schemestr, 4)==0)
scheme = SCHEME_FILE;
else if (strncmp("data", schemestr, 4)==0)
scheme = SCHEME_DATA;
//printf("out schemestr:'%s' scheme:'%d'\n", schemestr, scheme);
- char *cpath = NULL;
+ gchar *cpath = NULL;
switch (scheme) {
case SCHEME_FILE:
- cpath = (char *) uri.toNativeFilename();
+ cpath = uri.toNativeFilename();
//printf("out path:'%s'\n", cpath);
outf = fopen_utf8name(cpath, FILE_WRITE);
//outf = fopen(cpath, "wb");