7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

TEMPLATE_FIELDNAMES: don't drag in the lexer header

TEMPLATE_FIELDNAMES_LEXER is already forward declared - including the
header too drags DSNLEXER into many files, but it is literally only used
in template_fieldnames.cpp.
This commit is contained in:
John Beard 2024-10-03 22:54:11 +01:00
parent 436671edc3
commit c14e8aea89
2 changed files with 6 additions and 9 deletions

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2010 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2015-2023 KiCad Developers, see AUTHORS.TXT for contributors.
* Copyright (C) 2015-2024 KiCad Developers, see AUTHORS.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -22,9 +22,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "template_fieldnames.h"
#include <mutex>
#include <template_fieldnames.h>
#include <template_fieldnames_lexer.h>
#include <pgm_base.h>
#include <string_utils.h>

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2010 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2014-2023 KiCad Developers, see AUTHORS.TXT for contributors.
* Copyright (C) 2014-2024 KiCad Developers, see AUTHORS.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -22,12 +22,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _TEMPLATE_FIELDNAME_H_
#define _TEMPLATE_FIELDNAME_H_
#pragma once
#include <richio.h>
#include <template_fieldnames_lexer.h>
class TEMPLATE_FIELDNAMES_LEXER;
@ -196,5 +193,3 @@ private:
TEMPLATE_FIELDNAMES m_resolved;
bool m_resolvedDirty;
};
#endif // _TEMPLATE_FIELDNAME_H_