Browse Source

Restoring authorship annotation for <vayerx@yandex-team.ru>. Commit 2 of 2.

vayerx 3 years ago
parent
commit
b3f694bf40
4 changed files with 23 additions and 23 deletions
  1. 3 3
      util/folder/dirut.cpp
  2. 2 2
      util/folder/dirut.h
  3. 16 16
      util/generic/algorithm.h
  4. 2 2
      util/string/util.h

+ 3 - 3
util/folder/dirut.cpp

@@ -486,9 +486,9 @@ void MakePathIfNotExist(const char* path, int mode) {
     NFs::MakeDirectoryRecursive(path, NFs::EFilePermission(mode));
     NFs::MakeDirectoryRecursive(path, NFs::EFilePermission(mode));
     if (!NFs::Exists(path) || !TFileStat(path).IsDir()) {
     if (!NFs::Exists(path) || !TFileStat(path).IsDir()) {
         ythrow TSystemError() << "failed to create directory " << path;
         ythrow TSystemError() << "failed to create directory " << path;
-    } 
-} 
- 
+    }
+}
+
 const char* GetFileNameComponent(const char* f) {
 const char* GetFileNameComponent(const char* f) {
     const char* p = strrchr(f, LOCSLASH_C);
     const char* p = strrchr(f, LOCSLASH_C);
 #ifdef _win_
 #ifdef _win_

+ 2 - 2
util/folder/dirut.h

@@ -49,9 +49,9 @@ inline void MakeDirIfNotExist(const TString& path, int mode = 0777) {
     MakeDirIfNotExist(path.data(), mode);
     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 MakePathIfNotExist(const char* path, int mode = 0777);
- 
+
 void SlashFolderLocal(TString& folder);
 void SlashFolderLocal(TString& folder);
 bool correctpath(TString& filename);
 bool correctpath(TString& filename);
 bool resolvepath(TString& folder, const TString& home);
 bool resolvepath(TString& folder, const TString& home);

+ 16 - 16
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) {
 static inline bool Equal(T1 f1, T1 l1, T2 f2, P p) {
     return std::equal(f1, l1, f2, 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);
     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);
     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);
     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);
     return std::remove_copy_if(f, l, t, p);
-} 
+}
 
 
 template <class TI, class TO>
 template <class TI, class TO>
 static inline TO ReverseCopy(TI f, TI l, TO t) {
 static inline TO ReverseCopy(TI f, TI l, TO t) {

+ 2 - 2
util/string/util.h

@@ -116,11 +116,11 @@ public:
     }
     }
 
 
     char* brk(char* s) const {
     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 {
     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 **]
     /// See strsep [BUT argument is *&, not **]