13
0

'surfaces/mackie' - Other minor changes needed for building with MSVC

This commit is contained in:
John Emmas 2013-09-05 10:03:07 +01:00
parent a7ab40e8ae
commit 447e986a0a
2 changed files with 5 additions and 4 deletions

View File

@ -24,6 +24,7 @@
#include "pbd/xml++.h"
#include "pbd/error.h"
#include "pbd/pathscanner.h"
#include "pbd/convert.h"
#include "ardour/filesystem_paths.h"
@ -221,7 +222,7 @@ DeviceInfo::set_state (const XMLNode& node, int /* version */)
/* strip count is mandatory */
if ((child = node.child ("Strips")) != 0) {
if ((prop = child->property ("value")) != 0) {
if ((_strip_cnt = atoi (prop->value())) == 0) {
if ((_strip_cnt = atoi (prop->value().c_str())) == 0) {
_strip_cnt = 8;
}
}
@ -231,7 +232,7 @@ DeviceInfo::set_state (const XMLNode& node, int /* version */)
if ((child = node.child ("Extenders")) != 0) {
if ((prop = child->property ("value")) != 0) {
if ((_extenders = atoi (prop->value())) == 0) {
if ((_extenders = atoi (prop->value().c_str())) == 0) {
_extenders = 0;
}
}