diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
commit | 3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch) | |
tree | 1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/locate.cc | |
parent | d99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff) |
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/locate.cc')
-rw-r--r-- | graphics/asymptote/locate.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/asymptote/locate.cc b/graphics/asymptote/locate.cc index 52967d9fbd..bb34cbaaf3 100644 --- a/graphics/asymptote/locate.cc +++ b/graphics/asymptote/locate.cc @@ -12,7 +12,7 @@ #include "locate.h" - + namespace settings { namespace fs { @@ -28,7 +28,7 @@ string extension(string name) bool exists(string filename) { - return ::access(filename.c_str(), R_OK) == 0; + return ::access(filename.c_str(), R_OK) == 0; } } // namespace fs @@ -77,7 +77,7 @@ string locateFile(string id, bool full) (*leaf)[p]='/'; leaf->insert(0,"/cygdrive/"); } -#endif +#endif if ((*leaf)[0] == '/') { string file = *leaf; @@ -91,11 +91,11 @@ string locateFile(string id, bool full) if (fs::exists(file)) return file; } - } + } } return string(); } } // namespace settings - + |