Skip to content

Commit

Permalink
Modular: removed some uses of kTTValNone, project now builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nwolek committed Sep 18, 2013
1 parent da0e052 commit 2eb9b52
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
3 changes: 0 additions & 3 deletions Modular/library/PeerObject/TTApplicationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,9 +731,6 @@ TTErr TTApplicationManager::ReadFromXml(const TTValue& inputValue, TTValue& outp

// stop protocol reception threads
ProtocolStop(v, dummy);

// stop protocol reception threads
ProtocolStop(v, kTTValNONE);

// unregister all applications from all protocols
mProtocols->getKeys(protocolNames);
Expand Down
4 changes: 2 additions & 2 deletions Modular/library/PeerObject/TTCueManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ TTErr TTCueManager::ReadFromText(const TTValue& inputValue, TTValue& outputValue
TTTextHandlerPtr aTextHandler;
TTDictionaryPtr line;
TTSymbol flagName;
TTValue v;
TTValue v, aReturnWeDontCareAbout;

aTextHandler = TTTextHandlerPtr((TTObjectBasePtr)inputValue[0]);

Expand Down Expand Up @@ -1213,7 +1213,7 @@ TTErr TTCueManager::ReadFromText(const TTValue& inputValue, TTValue& outputValue

// Create a new cue
mCurrentCue = NULL;
TTObjectBaseInstantiate(kTTSym_Cue, TTObjectBaseHandle(&mCurrentCue), kTTValNONE);
TTObjectBaseInstantiate(kTTSym_Cue, TTObjectBaseHandle(&mCurrentCue), aReturnWeDontCareAbout);

mCurrentCue->setAttributeValue(kTTSym_name, mCurrent);

Expand Down
4 changes: 2 additions & 2 deletions Modular/library/PeerObject/TTMirror.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ TTSymbol TTMirror::getName()

TTErr TTMirror::getMirrorAttribute(TTAttribute& anAttribute, TTValue& value)
{
TTValue data;
TTValue data, aReturnWeDontCareAbout;

if (mGetAttributeCallback) {

data.append(anAttribute.name);
data.append((TTPtr)&value);

return mGetAttributeCallback->deliver(data);
mGetAttributeCallback->notify(data, kTTValNONE);
mGetAttributeCallback->notify(data, aReturnWeDontCareAbout);

if (value.size() > 0)
return kTTErrNone;
Expand Down
8 changes: 5 additions & 3 deletions Modular/library/ProtocolLib/Protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,11 @@ TTErr Protocol::ReceiveListenRequest(TTSymbol from, TTAddress address, TTBoolean

err = mApplicationManager->sendMessage(TTSymbol("ApplicationListen"), v, kTTValNONE);

// NW: wondering why this happens twice?
if (err)
return SendListenAnswer(from, address, dummy, err);
if (err && mRunning)
return SendListenAnswer(from, address, kTTValNONE, err);
if (err && mRunning)
return SendListenAnswer(from, address, dummy, err);
}

return kTTErrGeneric;
Expand All @@ -427,10 +428,11 @@ TTErr Protocol::ReceiveListenAnswer(TTSymbol from, TTAddress address, TTValue& n
// TODO
err = mApplicationManager->sendMessage(TTSymbol("ApplicationListenAnswer"), v, kTTValNONE);

// NW: wondering why this happens twice?
if (err)
return SendListenAnswer(from, address, dummy, err);
if (err && mRunning)
return SendListenAnswer(from, address, kTTValNONE, err);
return SendListenAnswer(from, address, dummy, err);
}

return kTTErrGeneric;
Expand Down

0 comments on commit 2eb9b52

Please sign in to comment.