diff options
author | Adrian Kummerlaender | 2016-02-22 20:46:27 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2016-02-22 20:46:27 +0100 |
commit | f357d79176ffbde8947a8c9b039729273f7411cd (patch) | |
tree | b13630d6e0270c7d8a9f566a7854744e55967278 /src/main.cc | |
parent | c67bd1d54e518bb9f4ecef97962100eb41dbac42 (diff) | |
download | change-f357d79176ffbde8947a8c9b039729273f7411cd.tar change-f357d79176ffbde8947a8c9b039729273f7411cd.tar.gz change-f357d79176ffbde8947a8c9b039729273f7411cd.tar.bz2 change-f357d79176ffbde8947a8c9b039729273f7411cd.tar.lz change-f357d79176ffbde8947a8c9b039729273f7411cd.tar.xz change-f357d79176ffbde8947a8c9b039729273f7411cd.tar.zst change-f357d79176ffbde8947a8c9b039729273f7411cd.zip |
Rename `PathMatcher::isMatching` to `PathMatcher::is_matching`
Purely cosmetic change to match the overall naming scheme.
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cc b/src/main.cc index 7e849fd..792c201 100644 --- a/src/main.cc +++ b/src/main.cc @@ -59,7 +59,7 @@ inline void track_write(const int fd) { if ( enabled && fd != *fd_guard && utility::is_regular_file(fd) ) { const auto path = utility::get_file_path(fd); - if ( !matcher->isMatching(path) ) { + if ( !matcher->is_matching(path) ) { tracker->track(path); } } @@ -67,7 +67,7 @@ inline void track_write(const int fd) { inline void track_write(const std::string& path) { if ( enabled && utility::is_regular_file(path.c_str()) ) { - if ( !matcher->isMatching(path) ) { + if ( !matcher->is_matching(path) ) { tracker->track(path); } } @@ -76,10 +76,10 @@ inline void track_write(const std::string& path) { inline void track_rename( const std::string& old_path, const std::string& new_path) { if ( enabled ) { - if ( !matcher->isMatching(old_path) ) { + if ( !matcher->is_matching(old_path) ) { tracker->track(old_path); - if ( !matcher->isMatching(new_path) ) { + if ( !matcher->is_matching(new_path) ) { logger->append("renamed '", old_path, "' to '", new_path, "'"); } } @@ -88,7 +88,7 @@ inline void track_rename( inline void track_remove(const std::string& path) { if ( enabled && utility::is_regular_file(path.c_str()) ) { - if ( !matcher->isMatching(path) ) { + if ( !matcher->is_matching(path) ) { logger->append("removed '", path, "'"); } } |