fixed some warnings

This commit is contained in:
matlabbe
2015-04-06 15:28:37 -04:00
parent 39ef8c0f0a
commit 9d58a6ec25
2 changed files with 3 additions and 2 deletions

View File

@@ -130,7 +130,7 @@ bool CameraModel::load(const std::string & filePath)
bool CameraModel::save(const std::string & filePath)
{
if(!filePath.empty() && !name_.empty() && !K_.empty() && !D_.empty(), !R_.empty(), !P_.empty())
if(!filePath.empty() && !name_.empty() && !K_.empty() && !D_.empty() && !R_.empty() && !P_.empty())
{
UINFO("Saving calibration to file \"%s\"", filePath.c_str());
cv::FileStorage fs(filePath, cv::FileStorage::WRITE);

View File

@@ -1032,7 +1032,8 @@ CameraFreenect2::CameraFreenect2(int deviceId, float imageRate, const Transform
CameraRGBD(imageRate, localTransform),
deviceId_(deviceId),
freenect2_(0),
dev_(0)
dev_(0),
listener_(0)
{
#ifdef WITH_FREENECT2
freenect2_ = new libfreenect2::Freenect2();