Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
080fd326
Commit
080fd326
authored
Jun 26, 2014
by
arxanas
Browse files
Fixed #131: Compiles on OS X now.
parent
fb7de2ad
Changes
2
Show whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
080fd326
...
@@ -275,7 +275,7 @@ CardInfo::CardInfo(CardDatabase *_db,
...
@@ -275,7 +275,7 @@ CardInfo::CardInfo(CardDatabase *_db,
bool
_cipt
,
bool
_cipt
,
int
_tableRow
,
int
_tableRow
,
const
SetList
&
_sets
,
const
SetList
&
_sets
,
QMap
<
QString
,
int
>
_muIds
)
MuidMap
_muIds
)
:
db
(
_db
),
:
db
(
_db
),
name
(
_name
),
name
(
_name
),
isToken
(
_isToken
),
isToken
(
_isToken
),
...
@@ -610,7 +610,7 @@ void CardDatabase::loadCardsFromXml(QXmlStreamReader &xml)
...
@@ -610,7 +610,7 @@ void CardDatabase::loadCardsFromXml(QXmlStreamReader &xml)
if
(
xml
.
name
()
==
"card"
)
{
if
(
xml
.
name
()
==
"card"
)
{
QString
name
,
manacost
,
type
,
pt
,
text
;
QString
name
,
manacost
,
type
,
pt
,
text
;
QStringList
colors
;
QStringList
colors
;
QMap
<
QString
,
int
>
muids
;
MuidMap
muids
;
SetList
sets
;
SetList
sets
;
int
tableRow
=
0
;
int
tableRow
=
0
;
int
loyalty
=
0
;
int
loyalty
=
0
;
...
...
cockatrice/src/carddatabase.h
View file @
080fd326
...
@@ -20,6 +20,9 @@ class QNetworkRequest;
...
@@ -20,6 +20,9 @@ class QNetworkRequest;
typedef
QMap
<
QString
,
QString
>
QStringMap
;
typedef
QMap
<
QString
,
QString
>
QStringMap
;
// If we don't typedef this, CardInfo::CardInfo will refuse to compile on OS X.
typedef
QMap
<
QString
,
int
>
MuidMap
;
class
CardSet
:
public
QList
<
CardInfo
*>
{
class
CardSet
:
public
QList
<
CardInfo
*>
{
private:
private:
QString
shortName
,
longName
;
QString
shortName
,
longName
;
...
@@ -100,7 +103,7 @@ private:
...
@@ -100,7 +103,7 @@ private:
QString
text
;
QString
text
;
QStringList
colors
;
QStringList
colors
;
int
loyalty
;
int
loyalty
;
QMap
<
QString
,
int
>
muIds
;
MuidMap
muIds
;
bool
cipt
;
bool
cipt
;
int
tableRow
;
int
tableRow
;
QPixmap
*
pixmap
;
QPixmap
*
pixmap
;
...
@@ -118,7 +121,7 @@ public:
...
@@ -118,7 +121,7 @@ public:
bool
_cipt
=
false
,
bool
_cipt
=
false
,
int
_tableRow
=
0
,
int
_tableRow
=
0
,
const
SetList
&
_sets
=
SetList
(),
const
SetList
&
_sets
=
SetList
(),
QMap
<
QString
,
int
>
muids
=
QMap
<
QString
,
int
>
());
MuidMap
muids
=
MuidMap
());
~
CardInfo
();
~
CardInfo
();
const
QString
&
getName
()
const
{
return
name
;
}
const
QString
&
getName
()
const
{
return
name
;
}
bool
getIsToken
()
const
{
return
isToken
;
}
bool
getIsToken
()
const
{
return
isToken
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment