Made requested revisions for naming and spacing

This commit is contained in:
Chris Pickett
2016-01-06 12:20:38 -06:00
parent 4731c7e502
commit b4fef31d84

View File

@@ -219,9 +219,9 @@ inline void EnsureDirExists(const std::string &filepath) {
// Obtains the absolute path from any other path. // Obtains the absolute path from any other path.
// Returns the input path if the absolute path couldn't be resolved. // Returns the input path if the absolute path couldn't be resolved.
inline std::string AbsolutePath(const std::string &filepath) { inline std::string AbsolutePath(const std::string &filepath) {
#ifdef NO_ABSOLUTE_PATH_RESOLUTION #ifdef FLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION
return filepath; return filepath;
#else #else
#ifdef _WIN32 #ifdef _WIN32
char abs_path[MAX_PATH]; char abs_path[MAX_PATH];
return GetFullPathNameA(filepath.c_str(), MAX_PATH, abs_path, nullptr) return GetFullPathNameA(filepath.c_str(), MAX_PATH, abs_path, nullptr)
@@ -231,7 +231,7 @@ inline std::string AbsolutePath(const std::string &filepath) {
#endif #endif
? abs_path ? abs_path
: filepath; : filepath;
#endif // NO_ABSOLUTE_PATH_RESOLUTION #endif // NO_ABSOLUTE_PATH_RESOLUTION
} }
// To and from UTF-8 unicode conversion functions // To and from UTF-8 unicode conversion functions