Little interface improvement for ITASampleFrame constructors

parent 63371436
......@@ -52,7 +52,7 @@ public:
* \param bZeroinit Frame mit Nullen initialisieren?
*/
explicit ITASampleFrame( int iChannels, int iLength, bool bZeroinit );
explicit ITASampleFrame( const int iChannels, const int iLength, const bool bZeroinit = 0 );
//! Kopierkonstruktor (Zeiger)
/**
......@@ -80,7 +80,7 @@ public:
*
* \note Im Fehlerfall wird eine ITAException ausgelst.
*/
ITASampleFrame( const std::string& sFilename );
ITASampleFrame( const std::string& sFilePath );
//! Destruktor
virtual ~ITASampleFrame();
......
......@@ -8,9 +8,12 @@
#include <ITAException.h>
ITASampleFrame::ITASampleFrame()
: m_iChannels( 0 ), m_iLength( 0 ) {}
: m_iChannels( 0 )
, m_iLength( 0 )
{
}
ITASampleFrame::ITASampleFrame( int iChannels, int iLength, bool bZeroinit )
ITASampleFrame::ITASampleFrame( const int iChannels, const int iLength, const bool bZeroinit /* = true */)
: m_iChannels( 0 )
, m_iLength( 0 )
{
......@@ -32,9 +35,9 @@ ITASampleFrame::ITASampleFrame( const ITASampleFrame& sbSource )
*this = sbSource;
}
ITASampleFrame::ITASampleFrame( const std::string& sFileName )
ITASampleFrame::ITASampleFrame( const std::string& sFilePath )
{
Load( sFileName );
Load( sFilePath );
}
ITASampleFrame::~ITASampleFrame()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment