~ubuntu-branches/debian/sid/filezilla/sid

« back to all changes in this revision

Viewing changes to src/interface/dndobjects.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adrien Cunin
  • Date: 2009-11-15 17:15:41 UTC
  • mfrom: (1.3.5 upstream) (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091115171541-nvo6m3hl3iof0lnc
* New upstream release
* Updated previous changelog entry to mention desktop notifications as a new
  feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
{
228
228
        // Convert data into XML
229
229
        TiXmlElement* pElement = m_xmlFile.CreateEmpty();
230
 
        pElement = pElement->InsertEndChild(TiXmlElement("RemoteDataObject"))->ToElement();
 
230
        pElement = pElement->LinkEndChild(new TiXmlElement("RemoteDataObject"))->ToElement();
231
231
 
232
232
        AddTextElement(pElement, "ProcessId", m_processId);
233
233
 
234
 
        TiXmlElement* pServer = pElement->InsertEndChild(TiXmlElement("Server"))->ToElement();
 
234
        TiXmlElement* pServer = pElement->LinkEndChild(new TiXmlElement("Server"))->ToElement();
235
235
        SetServer(pServer, m_server);
236
236
 
237
237
        AddTextElement(pElement, "Path", m_path.GetSafePath());
238
238
 
239
 
        TiXmlElement* pFiles = pElement->InsertEndChild(TiXmlElement("Files"))->ToElement();
 
239
        TiXmlElement* pFiles = pElement->LinkEndChild(new TiXmlElement("Files"))->ToElement();
240
240
        for (std::list<t_fileInfo>::const_iterator iter = m_fileList.begin(); iter != m_fileList.end(); iter++)
241
241
        {
242
 
                TiXmlElement* pFile = pFiles->InsertEndChild(TiXmlElement("File"))->ToElement();
 
242
                TiXmlElement* pFile = pFiles->LinkEndChild(new TiXmlElement("File"))->ToElement();
243
243
                AddTextElement(pFile, "Name", iter->name);
244
244
                AddTextElement(pFile, "Dir", iter->dir ? 1 : 0);
245
245
                AddTextElement(pFile, "Size", iter->size.ToString());