Skip to content

Commit

Permalink
fix include PathName
Browse files Browse the repository at this point in the history
  • Loading branch information
danovaro committed Nov 13, 2024
1 parent e06e73f commit c74365f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/eckit/filesystem/LocalPathName.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "eckit/config/LibEcKit.h"
#include "eckit/config/Resource.h"
#include "eckit/filesystem/BasePathNameT.h"
#include "eckit/filesystem/PathName.h"
#include "eckit/filesystem/PathNameFactory.h"
#include "eckit/filesystem/StdDir.h"
#include "eckit/io/FileHandle.h"
Expand Down Expand Up @@ -149,6 +150,9 @@ static void init() {

//----------------------------------------------------------------------------------------------------------------------

LocalPathName::LocalPathName(const PathName& path) :
LocalPathName(path.path(), false, true) {}

LocalPathName LocalPathName::baseName(bool ext) const {
const char* q = path_.c_str();
int n = -1;
Expand Down
4 changes: 2 additions & 2 deletions src/eckit/filesystem/LocalPathName.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace eckit {
class Length;
class DataHandle;
class BasePathName;
class PathName;

struct FileSystemSize;

Expand All @@ -54,8 +55,7 @@ class LocalPathName {
tidy(tildeIsUserHome, skipTildeExpansion);
}
}
explicit LocalPathName(const eckit::PathName& path) :
LocalPathName(path.path(), false, true) {}
explicit LocalPathName(const PathName& path);
LocalPathName(const LocalPathName& p) :
path_(p.path_) {}

Expand Down

0 comments on commit c74365f

Please sign in to comment.