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
commitd40bf94919f2035f1f522c4a285adce76f8f4edc (patch)
treeda42c929f1baf9413587bee9663b093830e8a751
parentb2577ab8779c4f6d23fc354eaa279f2e80b0fb37 (diff)
downloadydb-d40bf94919f2035f1f522c4a285adce76f8f4edc.tar.gz
Restoring authorship annotation for <vayerx@yandex-team.ru>. Commit 1 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 ffc9b09f96..825e00f765 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 2537027b12..f8e0546321 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 badfb88993..d6f81365c7 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 0d77a5042b..12afc448f7 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 **]