[dasher] VS2010 compile fix: initialisation of a reference requires operator.=
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher] VS2010 compile fix: initialisation of a reference requires operator.=
- Date: Mon, 11 Feb 2013 16:53:27 +0000 (UTC)
commit c49bce56643cca6bcb7789ba3a6d109413f1abe6
Author: Patrick Welche <prlw1 cam ac uk>
Date: Mon Feb 11 12:29:35 2013 +0000
VS2010 compile fix: initialisation of a reference requires operator.=
Src/DasherCore/Alphabet/AlphIO.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Src/DasherCore/Alphabet/AlphIO.cpp b/Src/DasherCore/Alphabet/AlphIO.cpp
index ae96f42..b8e1071 100644
--- a/Src/DasherCore/Alphabet/AlphIO.cpp
+++ b/Src/DasherCore/Alphabet/AlphIO.cpp
@@ -259,9 +259,9 @@ void CAlphIO::XmlStartHandler(const XML_Char *name, const XML_Char **atts) {
atts += 2;
}
- SGroupInfo *&prevSibling((m_vGroups.empty() ? InputInfo : m_vGroups.back())->pChild);
+ SGroupInfo *&prevSibling = (m_vGroups.empty() ? InputInfo->pChild : m_vGroups.back()->pChild);
- if (pNewGroup->iColour==-1 && pNewGroup->bVisible) {
+ if (pNewGroup->iColour==-1 && pNewGroup->bVisible) {
//no colour specified. Try to colour cycle, but make sure we choose
// a different colour from both its parent and any previous sibling
SGroupInfo *parent=NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]