aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvayerx <vayerx@yandex-team.ru>2022-02-10 16:52:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:04 +0300
commitb3f694bf40fc2866a161b2d25911171879b7ef18 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb
parentd40bf94919f2035f1f522c4a285adce76f8f4edc (diff)
downloadydb-b3f694bf40fc2866a161b2d25911171879b7ef18.tar.gz
Restoring authorship annotation for <vayerx@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--util/folder/dirut.cpp6
-rw-r--r--util/folder/dirut.h4
-rw-r--r--util/generic/algorithm.h32
-rw-r--r--util/string/util.h4
4 files changed, 23 insertions, 23 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp
index 825e00f765..ffc9b09f96 100644
--- a/util/folder/dirut.cpp
+++ b/util/folder/dirut.cpp
@@ -486,9 +486,9 @@ void MakePathIfNotExist(const char* path, int mode) {
NFs::MakeDirectoryRecursive(path, NFs::EFilePermission(mode));
if (!NFs::Exists(path) || !TFileStat(path).IsDir()) {
ythrow TSystemError() << "failed to create directory " << path;
- }
-}
-
+ }
+}
+
const char* GetFileNameComponent(const char* f) {
const char* p = strrchr(f, LOCSLASH_C);
#ifdef _win_
diff --git a/util/folder/dirut.h b/util/folder/dirut.h
index f8e0546321..2537027b12 100644
--- a/util/folder/dirut.h
+++ b/util/folder/dirut.h
@@ -49,9 +49,9 @@ inline void MakeDirIfNotExist(const TString& path, int mode = 0777) {
MakeDirIfNotExist(path.data(), mode);
}
-/// Create path making parent directories as needed
+/// Create path making parent directories as needed
void MakePathIfNotExist(const char* path, int mode = 0777);
-
+
void SlashFolderLocal(TString& folder);
bool correctpath(TString& filename);
bool resolvepath(TString& folder, const TString& home);
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h
index d6f81365c7..badfb88993 100644
--- a/util/generic/algorithm.h
+++ b/util/generic/algorithm.h
@@ -367,26 +367,26 @@ template <class T1, class T2, class P>
static inline bool Equal(T1 f1, T1 l1, T2 f2, P p) {
return std::equal(f1, l1, f2, p);
}
-
-template <class TI, class TO>
-static inline TO Copy(TI f, TI l, TO t) {
+
+template <class TI, class TO>
+static inline TO Copy(TI f, TI l, TO t) {
return std::copy(f, l, t);
-}
-
-template <class TI, class TO>
-static inline TO UniqueCopy(TI f, TI l, TO t) {
+}
+
+template <class TI, class TO>
+static inline TO UniqueCopy(TI f, TI l, TO t) {
return std::unique_copy(f, l, t);
-}
-
-template <class TI, class TO, class TP>
-static inline TO UniqueCopy(TI f, TI l, TO t, TP p) {
+}
+
+template <class TI, class TO, class TP>
+static inline TO UniqueCopy(TI f, TI l, TO t, TP p) {
return std::unique_copy(f, l, t, p);
-}
-
-template <class TI, class TO, class TP>
-static inline TO RemoveCopyIf(TI f, TI l, TO t, TP p) {
+}
+
+template <class TI, class TO, class TP>
+static inline TO RemoveCopyIf(TI f, TI l, TO t, TP p) {
return std::remove_copy_if(f, l, t, p);
-}
+}
template <class TI, class TO>
static inline TO ReverseCopy(TI f, TI l, TO t) {
diff --git a/util/string/util.h b/util/string/util.h
index 12afc448f7..0d77a5042b 100644
--- a/util/string/util.h
+++ b/util/string/util.h
@@ -116,11 +116,11 @@ public:
}
char* brk(char* s) const {
- return const_cast<char*>(brk((const char*)s));
+ return const_cast<char*>(brk((const char*)s));
}
char* cbrk(char* s) const {
- return const_cast<char*>(cbrk((const char*)s));
+ return const_cast<char*>(cbrk((const char*)s));
}
/// See strsep [BUT argument is *&, not **]