mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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);
|
||||
|
||||
@ -53,7 +53,6 @@ class doxygenXmlParser
|
||||
:
|
||||
public dictionary
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Construct from components
|
||||
|
||||
Reference in New Issue
Block a user