X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fsg_path.hxx;h=70f1b6c52b5ee8ca4911813459b12fe795b95df6;hb=2e71b64de1d937e2b7c34dd4a2365be455d0b82a;hp=e48e056476b080a227c6952efcd1bae3cb80a980;hpb=dcb95d131bc6aef1abe25d1f415e309f06e52436;p=simgear.git diff --git a/simgear/misc/sg_path.hxx b/simgear/misc/sg_path.hxx index e48e0564..70f1b6c5 100644 --- a/simgear/misc/sg_path.hxx +++ b/simgear/misc/sg_path.hxx @@ -31,11 +31,11 @@ #include #include -#include STL_STRING +#include #include -SG_USING_STD(string); +using std::string; #ifdef _MSC_VER typedef int mode_t; @@ -91,7 +91,7 @@ public: /** * Concatenate a string to the end of the path without inserting a * path separator. - * @param p addtional path suffix + * @param p additional path suffix */ void concat( const string& p ); @@ -114,8 +114,8 @@ public: string base() const; /** - * Get the extention part of the path (everything after the final ".") - * @return the extention string + * Get the extension part of the path (everything after the final ".") + * @return the extension string */ string extension() const; @@ -139,8 +139,9 @@ public: /** * Create the designated directory. + * @return 0 on success, or <0 on failure. */ - void create_dir(mode_t mode); + int create_dir(mode_t mode); private: