@@ -203,7 +203,7 @@ void CPhraseDialog::load_shared(LPCSTR)
203203 pXML->SetLocalRoot (pXML->GetRoot ());
204204
205205 // loading from XML
206- XML_NODE* dialog_node = pXML->NavigateToNode (id_to_index::tag_name, item_data.pos_in_file );
206+ XML_NODE dialog_node = pXML->NavigateToNode (id_to_index::tag_name, item_data.pos_in_file );
207207 THROW3 (dialog_node, " dialog id=" , *item_data.id );
208208
209209 pXML->SetLocalRoot (dialog_node);
@@ -219,7 +219,7 @@ void CPhraseDialog::load_shared(LPCSTR)
219219 // заполнить граф диалога фразами
220220 data ()->m_PhraseGraph .clear ();
221221
222- XML_NODE* phrase_list_node = pXML->NavigateToNode (dialog_node, " phrase_list" , 0 );
222+ XML_NODE phrase_list_node = pXML->NavigateToNode (dialog_node, " phrase_list" , 0 );
223223 if (NULL == phrase_list_node)
224224 {
225225 LPCSTR func = pXML->Read (dialog_node, " init_func" , 0 , " " );
@@ -242,7 +242,7 @@ void CPhraseDialog::load_shared(LPCSTR)
242242#endif
243243
244244 // ищем стартовую фразу
245- XML_NODE* phrase_node = pXML->NavigateToNodeWithAttribute (" phrase" , " id" , " 0" );
245+ XML_NODE phrase_node = pXML->NavigateToNodeWithAttribute (" phrase" , " id" , " 0" );
246246 THROW (phrase_node);
247247 AddPhrase (pXML, phrase_node, " 0" , " " );
248248}
@@ -273,7 +273,7 @@ CPhrase* CPhraseDialog::AddPhrase(
273273}
274274
275275void CPhraseDialog::AddPhrase (
276- CUIXml* pXml, XML_NODE* phrase_node, const shared_str& phrase_id, const shared_str& prev_phrase_id)
276+ CUIXml* pXml, XML_NODE phrase_node, const shared_str& phrase_id, const shared_str& prev_phrase_id)
277277{
278278 LPCSTR sText = pXml->Read (phrase_node, " text" , 0 , " " );
279279 int gw = pXml->ReadInt (phrase_node, " goodwill" , 0 , -10000 );
@@ -292,7 +292,7 @@ void CPhraseDialog::AddPhrase(
292292 for (int i = 0 ; i < next_num; ++i)
293293 {
294294 LPCSTR next_phrase_id_str = pXml->Read (phrase_node, " next" , i, " " );
295- XML_NODE* next_phrase_node = pXml->NavigateToNodeWithAttribute (" phrase" , " id" , next_phrase_id_str);
295+ XML_NODE next_phrase_node = pXml->NavigateToNodeWithAttribute (" phrase" , " id" , next_phrase_id_str);
296296 R_ASSERT2 (next_phrase_node, next_phrase_id_str);
297297 AddPhrase (pXml, next_phrase_node, next_phrase_id_str, phrase_id);
298298 }
0 commit comments