Skip to content

Commit 5515b34

Browse files
Replace '#pragme once' to '#ifndef' because of Eclipse code parser.
1 parent 3104c07 commit 5515b34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+230
-69
lines changed

include/litehtml.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#pragma once
1+
#ifndef LITEHTML_H
2+
#define LITEHTML_H
23

34
#include "../src/html.h"
45
#include "../src/document.h"
@@ -7,3 +8,5 @@
78
#include "../src/stylesheet.h"
89
#include "../src/element.h"
910
#include "../src/html_tag.h"
11+
12+
#endif // LITEHTML_H

src/attributes.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#pragma once
1+
#ifndef LH_ATTRIBUTES_H
2+
#define LH_ATTRIBUTES_H
23

34
namespace litehtml
45
{
@@ -29,4 +30,6 @@ namespace litehtml
2930
width = 0;
3031
}
3132
};
32-
}
33+
}
34+
35+
#endif // LH_ATTRIBUTES_H

src/background.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#pragma once
1+
#ifndef LH_BACKGROUND_H
2+
#define LH_BACKGROUND_H
3+
24
#include "types.h"
35
#include "attributes.h"
46
#include "css_length.h"
@@ -51,4 +53,6 @@ namespace litehtml
5153
void operator=(const background& val);
5254
};
5355

54-
}
56+
}
57+
58+
#endif // LH_BACKGROUND_H

src/borders.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#pragma once
1+
#ifndef LH_BORDERS_H
2+
#define LH_BORDERS_H
3+
24
#include "css_length.h"
35
#include "types.h"
46

@@ -294,3 +296,5 @@ namespace litehtml
294296
}
295297
};
296298
}
299+
300+
#endif // LH_BORDERS_H

src/box.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#pragma once
1+
#ifndef LH_BOX_H
2+
#define LH_BOX_H
23

34
namespace litehtml
45
{
@@ -114,4 +115,6 @@ namespace litehtml
114115
bool have_last_space();
115116
bool is_break_only();
116117
};
117-
}
118+
}
119+
120+
#endif // LH_BOX_H

src/context.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#pragma once
1+
#ifndef LH_CONTEXT_H
2+
#define LH_CONTEXT_H
3+
24
#include "stylesheet.h"
35

46
namespace litehtml
@@ -13,4 +15,6 @@ namespace litehtml
1315
return m_master_css;
1416
}
1517
};
16-
}
18+
}
19+
20+
#endif // LH_CONTEXT_H

src/css_length.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#pragma once
1+
#ifndef LH_CSS_LENGTH_H
2+
#define LH_CSS_LENGTH_H
3+
24
#include "types.h"
35

46
namespace litehtml
@@ -128,4 +130,6 @@ namespace litehtml
128130
}
129131
return 0;
130132
}
131-
}
133+
}
134+
135+
#endif // LH_CSS_LENGTH_H

src/css_margins.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#pragma once
1+
#ifndef LH_CSS_MARGINS_H
2+
#define LH_CSS_MARGINS_H
3+
24
#include "css_length.h"
35

46
namespace litehtml
@@ -32,4 +34,6 @@ namespace litehtml
3234
return *this;
3335
}
3436
};
35-
}
37+
}
38+
39+
#endif // LH_CSS_MARGINS_H

src/css_offsets.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#pragma once
1+
#ifndef LH_CSS_OFFSETS_H
2+
#define LH_CSS_OFFSETS_H
3+
24
#include "css_length.h"
35

46
namespace litehtml
@@ -32,4 +34,6 @@ namespace litehtml
3234
return *this;
3335
}
3436
};
35-
}
37+
}
38+
39+
#endif // LH_CSS_OFFSETS_H

src/css_position.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#pragma once
1+
#ifndef LH_CSS_POSITION_H
2+
#define LH_CSS_POSITION_H
3+
24
#include "css_length.h"
35

46
namespace litehtml
@@ -32,4 +34,6 @@ namespace litehtml
3234
return *this;
3335
}
3436
};
35-
}
37+
}
38+
39+
#endif // LH_CSS_POSITION_H

0 commit comments

Comments
 (0)