Fix a compil warning and 2 Coverity warnings.

This commit is contained in:
jean-pierre charras 2020-08-07 13:13:25 +02:00
parent 9b6ade6b1c
commit 8005de27c0
3 changed files with 14 additions and 10 deletions

View File

@ -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

View File

@ -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();
} }

View File

@ -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();
} }