From 1939575a6b801447b66cc17538da27639687dc44 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Fri, 11 Mar 2011 16:27:40 +0000 Subject: [PATCH] Explicit constructor from double --- src/OpenFOAM/primitives/FadOne/FadOne.H | 4 ++-- src/OpenFOAM/primitives/FadOne/FadOneFunctions.H | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenFOAM/primitives/FadOne/FadOne.H b/src/OpenFOAM/primitives/FadOne/FadOne.H index c44b8a258..51a5250b3 100644 --- a/src/OpenFOAM/primitives/FadOne/FadOne.H +++ b/src/OpenFOAM/primitives/FadOne/FadOne.H @@ -166,10 +166,10 @@ public: inline FadOne(); //- Construct from value - inline FadOne(const double& v); + explicit inline FadOne(const double& v); //- Construct from Istream - inline FadOne(Istream&); + explicit inline FadOne(Istream&); //- Construct as copy inline FadOne(const FadOne&); diff --git a/src/OpenFOAM/primitives/FadOne/FadOneFunctions.H b/src/OpenFOAM/primitives/FadOne/FadOneFunctions.H index 8a21f3630..7aeb13f1c 100644 --- a/src/OpenFOAM/primitives/FadOne/FadOneFunctions.H +++ b/src/OpenFOAM/primitives/FadOne/FadOneFunctions.H @@ -36,7 +36,7 @@ namespace Foam /* * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * */ -// Return a string representation of a complex +// Return a string representation of a FadOne template word name(const FadOne&);