diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-31 19:49:01 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-31 19:49:01 (GMT) |
commit | 9778b72f5641d98f98a1851fc93148f9da258a74 (patch) | |
tree | f283fe690f32ce67424790725d2a4aceade4e787 /src | |
parent | 482b02defc5945a0fd3476c47630f5935a880c10 (diff) | |
download | Doxygen-9778b72f5641d98f98a1851fc93148f9da258a74.zip Doxygen-9778b72f5641d98f98a1851fc93148f9da258a74.tar.gz Doxygen-9778b72f5641d98f98a1851fc93148f9da258a74.tar.bz2 |
Fixed type in javascript license text and moved it to one location
Diffstat (limited to 'src')
-rw-r--r-- | src/ftvhelp.cpp | 16 | ||||
-rw-r--r-- | src/ftvhelp.h | 16 | ||||
-rw-r--r-- | src/index.cpp | 16 |
3 files changed, 18 insertions, 30 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp index 31a839e..5899bea 100644 --- a/src/ftvhelp.cpp +++ b/src/ftvhelp.cpp @@ -635,21 +635,7 @@ static void generateJSNavTree(const QList<FTVNode> &nodeList) //tidx << "var NAVTREEINDEX =" << endl; //tidx << "{" << endl; FTextStream t(&f); - t << "/*\n@ @licstart The following is the entire license notice for the\n" - "JavaScript code in this file.\n\nCopyright (C) 1997-2017 by Dimitri van Heesch\n\n" - "This program is free software; you can redistribute it and/or modify\n" - "it under the terms of the GNU General Public License as published by\n" - "the Free Software Foundation; either version 2 of the License.\n\n" - "This program is distributed in the hope that it will be useful,\n" - "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" - " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" - " GNU General Public License for more details.\n\n" - "You should have received a copy of the GNU General Public License along\n" - "with this program; if not, write to the Free Software Foundation, Inc.,\n" - "51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n\n" - "@licend The above is the entire license notice\n" - "for the JavaScript code in this file\n" - "*/\n"; + t << JAVASCRIPT_LICENSE_TEXT; t << "var NAVTREE =" << endl; t << "[" << endl; t << " [ "; diff --git a/src/ftvhelp.h b/src/ftvhelp.h index bacf9a5..eac0367 100644 --- a/src/ftvhelp.h +++ b/src/ftvhelp.h @@ -72,6 +72,22 @@ class FTVHelp : public IndexIntf bool m_topLevelIndex; }; +#define JAVASCRIPT_LICENSE_TEXT \ + "/*\n@ @licstart The following is the entire license notice for the\n" \ + "JavaScript code in this file.\n\nCopyright (C) 1997-2019 by Dimitri van Heesch\n\n" \ + "This program is free software; you can redistribute it and/or modify\n" \ + "it under the terms of version 2 of the GNU General Public License as published by\n" \ + "the Free Software Foundation\n\n" \ + "This program is distributed in the hope that it will be useful,\n" \ + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \ + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" \ + "GNU General Public License for more details.\n\n" \ + "You should have received a copy of the GNU General Public License along\n" \ + "with this program; if not, write to the Free Software Foundation, Inc.,\n" \ + "51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n\n" \ + "@licend The above is the entire license notice\n" \ + "for the JavaScript code in this file\n" \ + "*/\n" #endif /* FTVHELP_H */ diff --git a/src/index.cpp b/src/index.cpp index fbef2cb..e743fac 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -5275,21 +5275,7 @@ static void writeMenuData() if (f.open(IO_WriteOnly)) { FTextStream t(&f); - t << "/*\n@ @licstart The following is the entire license notice for the\n" - "JavaScript code in this file.\n\nCopyright (C) 1997-2017 by Dimitri van Heesch\n\n" - "This program is free software; you can redistribute it and/or modify\n" - "it under the terms of the GNU General Public License as published by\n" - "the Free Software Foundation; either version 2 of the License\n\n" - "This program is distributed in the hope that it will be useful,\n" - "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" - " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" - " GNU General Public License for more details.\n\n" - "You should have received a copy of the GNU General Public License along\n" - "with this program; if not, write to the Free Software Foundation, Inc.,\n" - "51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n\n" - "@licend The above is the entire license notice\n" - "for the JavaScript code in this file\n" - "*/\n"; + t << JAVASCRIPT_LICENSE_TEXT; t << "var menudata={"; bool hasChildren = renderQuickLinksAsJs(t,root,TRUE); if (hasChildren) t << "]"; |