STYLE: default construct empty dictionaries

- some code used copy construct from dictionary::null instead.
  The result is the same but suggests that something else may be intended.
  Only need dictionary::null for const-ref usage.
This commit is contained in:
Mark Olesen
2021-04-19 10:44:14 +02:00
parent d2311437ef
commit 385f92732b
26 changed files with 89 additions and 90 deletions

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2012-2016 OpenFOAM Foundation
Copyright (C) 2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -39,7 +40,7 @@ Foam::doxygenXmlParser::doxygenXmlParser
const word& ext
)
:
dictionary(dictionary::null)
dictionary()
{
// Pre-construct and compile regular expressions
const regExp nameRe(".*.H");
@ -155,7 +156,7 @@ Foam::doxygenXmlParser::doxygenXmlParser
// preferentially take exact match if it exists
if (exactMatch && (tName + "." + ext) == name)
{
dictionary dict(dictionary::null);
dictionary dict;
dict.add("name", name);
dict.add("filename", fName + ".html");
dict.add("path", path);
@ -168,7 +169,7 @@ Foam::doxygenXmlParser::doxygenXmlParser
&& regExp(".*" + tName + ".*").match(name)
)
{
dictionary dict(dictionary::null);
dictionary dict;
dict.add("name", name);
dict.add("filename", fName + ".html");
dict.add("path", path);

View File

@ -53,7 +53,6 @@ class doxygenXmlParser
:
public dictionary
{
public:
//- Construct from components