Browse Source

clang-format-7

Tatsuhiro Tsujikawa 6 năm trước cách đây
mục cha
commit
4af4a7cfc3
3 tập tin đã thay đổi với 4 bổ sung8 xóa
  1. 0 4
      .clang-format
  2. 3 3
      src/Platform.cc
  3. 1 1
      src/main.cc

+ 0 - 4
.clang-format

@@ -89,10 +89,6 @@ PenaltyBreakString: 1000
 PenaltyExcessCharacter: 1000000
 PenaltyReturnTypeOnItsOwnLine: 60
 PointerAlignment: Left
-RawStringFormats:
-  - Delimiter:       pb
-    Language:        TextProto
-    BasedOnStyle:    google
 ReflowComments:  true
 SortIncludes:    false
 SortUsingDeclarations: true

+ 3 - 3
src/Platform.cc

@@ -112,14 +112,14 @@ bool Platform::setUp()
 #endif // ENABLE_NLS
 
 #ifdef HAVE_OPENSSL
-#if !OPENSSL_101_API
+#  if !OPENSSL_101_API
   // for SSL initialization
   SSL_load_error_strings();
   SSL_library_init();
   // Need this to "decrypt" p12 files.
   OpenSSL_add_all_algorithms();
-#endif // !OPENSSL_101_API
-#endif // HAVE_OPENSSL
+#  endif // !OPENSSL_101_API
+#endif   // HAVE_OPENSSL
 #ifdef HAVE_LIBGCRYPT
   if (!gcry_check_version("1.2.4")) {
     throw DL_ABORT_EX("gcry_check_version() failed.");

+ 1 - 1
src/main.cc

@@ -62,7 +62,7 @@ error_code::Value main(int argc, char** argv)
   }
   std::vector<std::unique_ptr<char>> winArgStrs;
   winArgStrs.reserve(winArgc);
-  auto pargv = make_unique<char* []>(winArgc);
+  auto pargv = make_unique<char*[]>(winArgc);
   for (int i = 0; i < winArgc; ++i) {
     winArgStrs.emplace_back(strdup(wCharToUtf8(winArgv[i]).c_str()));
     pargv[i] = winArgStrs.back().get();