Skip to content

Commit 01e2ebf

Browse files
committed
make source changes
1 parent d6831a0 commit 01e2ebf

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

src/demo.cpp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
/** This is a very ugly test code (doomed to fail linting) */
22
#include "demo.hpp"
3-
#include <cstdio>
4-
#include <cstddef>
3+
#include <stdio.h>
54

6-
// using size_t from cstddef
7-
size_t dummyFunc(size_t i) { return i; }
85

9-
int main()
10-
{
11-
for (;;)
12-
break;
6+
7+
8+
int main(){
9+
10+
for (;;) break;
11+
1312

1413
printf("Hello world!\n");
1514

16-
return 0;
17-
}
15+
16+
17+
18+
return 0;}

src/demo.hpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
class Dummy {
66
char* useless;
77
int numb;
8+
Dummy() :numb(0), useless("\0"){}
89

910
public:
10-
void *not_usefull(char *str){
11-
useless = str;
12-
return 0;
13-
}
11+
void *not_useful(char *str){useless = str;}
1412
};
1513

1614

@@ -28,14 +26,11 @@ class Dummy {
2826

2927

3028

31-
32-
33-
34-
3529

3630

3731
struct LongDiff
3832
{
33+
3934
long diff;
4035

4136
};

0 commit comments

Comments
 (0)