part II of rewriting
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@635 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -25,13 +25,13 @@ long Default::PostFunDefaultParsePath()
|
||||
Item * pdir, * pdir2;
|
||||
long defaultid = -1;
|
||||
|
||||
std::string * path = request->PostVar("defaultitem");
|
||||
const std::string & path = request->PostVar("defaultitem");
|
||||
|
||||
|
||||
if( path && !path->empty() )
|
||||
if( !path.empty() )
|
||||
{
|
||||
std::string dir, file;
|
||||
Dirs::SplitPath(*path, dir, file);
|
||||
Dirs::SplitPath(path, dir, file);
|
||||
|
||||
pdir = system->dirs.GetDir(dir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user