bool Token::Equals(Token* token) { if(!TimedObject::Equals(token)) return false; return GetSourceText() == token->GetSourceText()/* && prec == token->prec && next == token->next*/; }
/** * Takes the source out of the edit control and applies it * to the material. */ void MaterialEditView::ApplyMaterialSource() { if(!sourceChanged) return; MaterialDoc* material = materialDocManager->CreateMaterialDoc(currentMaterialName); if(material) { idStr text = GetSourceText(); material->ApplySourceModify(text); } sourceChanged = false; }