~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/resources/sounddb.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#include "resources/sounddb.h"
22
22
 
23
 
#include "client.h"
24
23
#include "configuration.h"
25
 
#include "logger.h"
26
24
#include "notifications.h"
27
25
#include "notifymanager.h"
28
26
 
41
39
    unload();
42
40
 
43
41
    XML::Document *doc = new XML::Document(paths.getStringValue("soundsFile"));
44
 
    XmlNodePtr root = doc->rootNode();
 
42
    const XmlNodePtr root = doc->rootNode();
45
43
 
46
44
    if (!root || !xmlNameEqual(root, "sounds"))
47
45
    {