Fix a compil warning and 2 Coverity warnings.
This commit is contained in:
parent
9b6ade6b1c
commit
8005de27c0
|
@ -151,6 +151,7 @@ wxString GetVersionInfoData( const wxString& aTitle, bool aHtml, bool aBrief )
|
||||||
#if defined( NGSPICE_BUILD_VERSION )
|
#if defined( NGSPICE_BUILD_VERSION )
|
||||||
aMsg << indent4 << "ngspice: " << NGSPICE_BUILD_VERSION << eol;
|
aMsg << indent4 << "ngspice: " << NGSPICE_BUILD_VERSION << eol;
|
||||||
#elif defined( NGSPICE_HAVE_CONFIG_H )
|
#elif defined( NGSPICE_HAVE_CONFIG_H )
|
||||||
|
#undef HAVE_STRNCASECMP /* is redefined in ngspice/config.h */
|
||||||
#include <ngspice/config.h>
|
#include <ngspice/config.h>
|
||||||
aMsg << indent4 << "ngspice: " << PACKAGE_VERSION << eol;
|
aMsg << indent4 << "ngspice: " << PACKAGE_VERSION << eol;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
RECTWAVEGUIDE::RECTWAVEGUIDE() : TRANSLINE()
|
RECTWAVEGUIDE::RECTWAVEGUIDE() : TRANSLINE()
|
||||||
{
|
{
|
||||||
m_Name = "RectWaveGuide";
|
m_Name = "RectWaveGuide";
|
||||||
|
fc10 = 1.0; // Cutoff frequency for TE10 mode
|
||||||
|
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@ TRANSLINE::TRANSLINE()
|
||||||
{
|
{
|
||||||
m_parameters[MURC_PRM] = 1.0;
|
m_parameters[MURC_PRM] = 1.0;
|
||||||
m_Name = nullptr;
|
m_Name = nullptr;
|
||||||
|
ang_l = 0.0; // Electrical length in angle
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue