forked from mirror/openmw-tes3mp
More warning fixes.
This commit is contained in:
parent
4f6c772437
commit
fd86076db3
7 changed files with 10 additions and 13 deletions
|
@ -32,7 +32,7 @@ namespace ESM
|
||||||
|
|
||||||
namespace Files
|
namespace Files
|
||||||
{
|
{
|
||||||
class ConfigurationManager;
|
struct ConfigurationManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace CSMWorld
|
namespace CSMWorld
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
namespace Files
|
namespace Files
|
||||||
{
|
{
|
||||||
class ConfigurationManager;
|
struct ConfigurationManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace CSMDoc
|
namespace CSMDoc
|
||||||
|
@ -50,7 +50,7 @@ namespace CSMDoc
|
||||||
///< \param new_ Do not load the last content file in \a files and instead create in an
|
///< \param new_ Do not load the last content file in \a files and instead create in an
|
||||||
/// appropriate way.
|
/// appropriate way.
|
||||||
|
|
||||||
void setResourceDir (const boost::filesystem::path& parResDir);
|
void setResourceDir (const boost::filesystem::path& parResDir);
|
||||||
|
|
||||||
void setEncoding (ToUTF8::FromType encoding);
|
void setEncoding (ToUTF8::FromType encoding);
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ namespace CSMDoc
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
boost::filesystem::path mResDir;
|
boost::filesystem::path mResDir;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ void CSMDoc::WriteHeaderStage::perform (int stage, Messages& messages)
|
||||||
|
|
||||||
CSMDoc::WriteDialogueCollectionStage::WriteDialogueCollectionStage (Document& document,
|
CSMDoc::WriteDialogueCollectionStage::WriteDialogueCollectionStage (Document& document,
|
||||||
SavingState& state, bool journal)
|
SavingState& state, bool journal)
|
||||||
: mDocument (document), mState (state),
|
: mState (state),
|
||||||
mTopics (journal ? document.getData().getJournals() : document.getData().getTopics()),
|
mTopics (journal ? document.getData().getJournals() : document.getData().getTopics()),
|
||||||
mInfos (journal ? document.getData().getJournalInfos() : document.getData().getTopicInfos())
|
mInfos (journal ? document.getData().getJournalInfos() : document.getData().getTopicInfos())
|
||||||
{}
|
{}
|
||||||
|
|
|
@ -126,7 +126,6 @@ namespace CSMDoc
|
||||||
|
|
||||||
class WriteDialogueCollectionStage : public Stage
|
class WriteDialogueCollectionStage : public Stage
|
||||||
{
|
{
|
||||||
Document& mDocument;
|
|
||||||
SavingState& mState;
|
SavingState& mState;
|
||||||
const CSMWorld::IdCollection<ESM::Dialogue>& mTopics;
|
const CSMWorld::IdCollection<ESM::Dialogue>& mTopics;
|
||||||
CSMWorld::InfoCollection& mInfos;
|
CSMWorld::InfoCollection& mInfos;
|
||||||
|
|
|
@ -26,7 +26,7 @@ void CSMWorld::InfoCollection::load (const Info& record, bool base)
|
||||||
|
|
||||||
if (!record2.get().mPrev.empty())
|
if (!record2.get().mPrev.empty())
|
||||||
{
|
{
|
||||||
index = getIndex (record2.get().mPrev, topic);
|
index = getInfoIndex (record2.get().mPrev, topic);
|
||||||
|
|
||||||
if (index!=-1)
|
if (index!=-1)
|
||||||
++index;
|
++index;
|
||||||
|
@ -34,7 +34,7 @@ void CSMWorld::InfoCollection::load (const Info& record, bool base)
|
||||||
|
|
||||||
if (index==-1 && !record2.get().mNext.empty())
|
if (index==-1 && !record2.get().mNext.empty())
|
||||||
{
|
{
|
||||||
index = getIndex (record2.get().mNext, topic);
|
index = getInfoIndex (record2.get().mNext, topic);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index==-1)
|
if (index==-1)
|
||||||
|
@ -60,7 +60,7 @@ void CSMWorld::InfoCollection::load (const Info& record, bool base)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int CSMWorld::InfoCollection::getIndex (const std::string& id, const std::string& topic) const
|
int CSMWorld::InfoCollection::getInfoIndex (const std::string& id, const std::string& topic) const
|
||||||
{
|
{
|
||||||
std::string fullId = Misc::StringUtils::lowerCase (topic) + "#" + id;
|
std::string fullId = Misc::StringUtils::lowerCase (topic) + "#" + id;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
namespace ESM
|
namespace ESM
|
||||||
{
|
{
|
||||||
class Dialogue;
|
struct Dialogue;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace CSMWorld
|
namespace CSMWorld
|
||||||
|
@ -22,7 +22,7 @@ namespace CSMWorld
|
||||||
|
|
||||||
void load (const Info& record, bool base);
|
void load (const Info& record, bool base);
|
||||||
|
|
||||||
int getIndex (const std::string& id, const std::string& topic) const;
|
int getInfoIndex (const std::string& id, const std::string& topic) const;
|
||||||
///< Return index for record \a id or -1 (if not present; deleted records are considered)
|
///< Return index for record \a id or -1 (if not present; deleted records are considered)
|
||||||
///
|
///
|
||||||
/// \param id info ID without topic prefix
|
/// \param id info ID without topic prefix
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
|
|
||||||
namespace CSMWorld
|
namespace CSMWorld
|
||||||
{
|
{
|
||||||
class Cell;
|
|
||||||
|
|
||||||
/// \brief Wrapper for CellRef sub record
|
/// \brief Wrapper for CellRef sub record
|
||||||
struct CellRef : public ESM::CellRef
|
struct CellRef : public ESM::CellRef
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue