1
0
forked from 0ad/0ad
0ad/source/dcdt/se/sr_sn_matrix.cpp
janwas 5bf9bca9ef fix/disable warnings.
there are too many W4 and "potentially uninitialized", so those are
disabled by 0ad_warning_disable.h.

the silly "int x = strlen" and very dangerous "int x = (void*)p" (and
vice versa) problems are fixed.

This was SVN commit r5526.
2007-12-23 12:18:57 +00:00

33 lines
765 B
C++

#include "precompiled.h"
#include "0ad_warning_disable.h"
# include "sr_sn_matrix.h"
//# define SR_USE_TRACE1 // Const/Dest
# include "sr_trace.h"
//======================================= SrSnMatrix ====================================
const char* SrSnMatrix::class_name = "Matrix";
SrSnMatrix::SrSnMatrix ()
:SrSn ( SrSn::TypeMatrix, SrSnMatrix::class_name )
{
SR_TRACE1 ( "Constructor" );
}
SrSnMatrix::SrSnMatrix ( const SrMat& m )
:SrSn ( SrSn::TypeMatrix, SrSnMatrix::class_name )
{
SR_TRACE1 ( "Constructor from SrMat" );
_mat = m;
}
SrSnMatrix::~SrSnMatrix ()
{
SR_TRACE1 ( "Destructor" );
}
//======================================= EOF ====================================