Skip to content

Commit a3ffc5a

Browse files
authored
Merge pull request #3213 from gberkes/v3/sonar_move_these_3_includes_to_the_top_of_the_file
Refactor: moved 3 #include directives to the top of the file.
2 parents 0feaeac + c46f470 commit a3ffc5a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

headers/modsecurity/modsecurity.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
* std::cout << "There is an intervention" << std::endl;
3939
* }
4040
*
41-
* ...
41+
* ...
4242
*
4343
* @endcode
44-
*
44+
*
4545
*/
4646

4747
/**
@@ -81,6 +81,11 @@
8181
#endif
8282

8383

84+
#include "modsecurity/intervention.h"
85+
#include "modsecurity/transaction.h"
86+
#include "modsecurity/debug_log.h"
87+
88+
8489
#ifndef HEADERS_MODSECURITY_MODSECURITY_H_
8590
#define HEADERS_MODSECURITY_MODSECURITY_H_
8691

@@ -160,7 +165,7 @@ namespace modsecurity {
160165
LoggingPhase,
161166
/**
162167
* Just a marking for the expected number of phases.
163-
*
168+
*
164169
*/
165170
NUMBER_OF_PHASES,
166171
};
@@ -170,11 +175,6 @@ namespace modsecurity {
170175
#endif
171176

172177

173-
174-
#include "modsecurity/intervention.h"
175-
#include "modsecurity/transaction.h"
176-
#include "modsecurity/debug_log.h"
177-
178178
/**
179179
* TAG_NUM:
180180
*

0 commit comments

Comments
 (0)