diff --git a/include/caosdb/constants.h.in b/include/caosdb/constants.h.in
index a42c9dfd563df0a340553daf3cbcf3726bf0054e..2661806d63a23b419da44de664f087b3c95c9a87 100644
--- a/include/caosdb/constants.h.in
+++ b/include/caosdb/constants.h.in
@@ -23,7 +23,7 @@
 #ifndef CAOSDB_CONSTANTS_H
 #define CAOSDB_CONSTANTS_H
 #ifndef __GNUC__
-#  define  __attribute__(x)
+#define __attribute__(x)
 #endif
 #ifdef __cplusplus
 namespace caosdb {
diff --git a/src/caosdb/transaction.cpp b/src/caosdb/transaction.cpp
index 6c96b8c71ee98aa399e2c7ba1d11d645c0c6801c..0460d4c7b660bc4e7d0b387b0d62e3d34f338e33 100644
--- a/src/caosdb/transaction.cpp
+++ b/src/caosdb/transaction.cpp
@@ -41,7 +41,7 @@
 #include <grpcpp/impl/codegen/completion_queue.h> // for CompletionQueue
 #include <map>                                    // for map, operator!=
 #include <memory>                                 // for unique_ptr
-#include <random>  // for mt19937, rand...
+#include <random>                                 // for mt19937, rand...
 #include <sstream>
 #include <utility> // for move, pair
 
@@ -148,7 +148,7 @@ auto get_next_file_id() -> std::string {
   const std::string str = "0123456789abcdef";
   std::mt19937 generator(std::random_device{}());
   std::uniform_int_distribution<int> distribution(0, 15); // NOLINT
-  std::string result(10, '\0'); // NOLINT
+  std::string result(10, '\0');                           // NOLINT
 
   for (auto &dis : result) {
     dis = str[distribution(generator)];