Skip to content

Commit 2182574

Browse files
committed
Refactoring: Move javascript license file to header
1 parent c0b9f43 commit 2182574

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

src/ftvhelp.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,6 @@
3939

4040
static int folderId=1;
4141

42-
const char *JAVASCRIPT_LICENSE_TEXT = R"LIC(/*
43-
@licstart The following is the entire license notice for the JavaScript code in this file.
44-
45-
The MIT License (MIT)
46-
47-
Copyright (C) 1997-2020 by Dimitri van Heesch
48-
49-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
50-
and associated documentation files (the "Software"), to deal in the Software without restriction,
51-
including without limitation the rights to use, copy, modify, merge, publish, distribute,
52-
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
53-
furnished to do so, subject to the following conditions:
54-
55-
The above copyright notice and this permission notice shall be included in all copies or
56-
substantial portions of the Software.
57-
58-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
59-
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
60-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
61-
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
63-
64-
@licend The above is the entire license notice for the JavaScript code in this file
65-
*/
66-
)LIC";
6742

6843
struct FTVNode;
6944
using FTVNodePtr = std::shared_ptr<FTVNode>;

src/ftvhelp.h

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,31 @@ class FTVHelp
6666
std::unique_ptr<Private> p;
6767
};
6868

69-
extern const char *JAVASCRIPT_LICENSE_TEXT;
69+
constexpr auto JAVASCRIPT_LICENSE_TEXT = R"LIC(/*
70+
@licstart The following is the entire license notice for the JavaScript code in this file.
71+
72+
The MIT License (MIT)
73+
74+
Copyright (C) 1997-2020 by Dimitri van Heesch
75+
76+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
77+
and associated documentation files (the "Software"), to deal in the Software without restriction,
78+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
79+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
80+
furnished to do so, subject to the following conditions:
81+
82+
The above copyright notice and this permission notice shall be included in all copies or
83+
substantial portions of the Software.
84+
85+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
86+
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
87+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
88+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
89+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
90+
91+
@licend The above is the entire license notice for the JavaScript code in this file
92+
*/
93+
)LIC";
7094

7195
#endif /* FTVHELP_H */
7296

0 commit comments

Comments
 (0)