Skip to content

Commit

Permalink
removing redundant function modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Adalberto Foresti committed Oct 1, 2016
1 parent 268eeb0 commit 39536db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Readers/Kaldi2Reader/htkfeatio_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ struct MatchPathSeparator
}
};

inline std::string basename(std::string const &pathname)
std::string basename(std::string const &pathname)
{
return std::string(std::find_if(pathname.rbegin(), pathname.rend(), MatchPathSeparator()).base(), pathname.end());
}

static inline std::wstring basename(std::wstring const &pathname)
std::wstring basename(std::wstring const &pathname)
{
return std::wstring(std::find_if(pathname.rbegin(), pathname.rend(), MatchPathSeparator()).base(), pathname.end());
}

inline std::string removeExtension(std::string const &filename)
std::string removeExtension(std::string const &filename)
{
size_t lastindex = filename.find_first_of(".");
return filename.substr(0, lastindex);
}

inline std::wstring removeExtension(std::wstring const &filename)
std::wstring removeExtension(std::wstring const &filename)
{
size_t lastindex = filename.find_first_of(L".");
return filename.substr(0, lastindex);
Expand Down

0 comments on commit 39536db

Please sign in to comment.