forked from mia/Aegisub
Moved AssEntry constructors to where they should be
Originally committed to SVN as r27.
This commit is contained in:
parent
87ac27af9a
commit
645aae6e29
2 changed files with 28 additions and 28 deletions
|
@ -44,34 +44,6 @@
|
|||
#include <wx/tokenzr.h>
|
||||
|
||||
|
||||
////////////////////// AssEntry //////////////////////
|
||||
///////////////////////
|
||||
// Constructs AssEntry
|
||||
AssEntry::AssEntry() {
|
||||
Type = ENTRY_BASE;
|
||||
Valid = true;
|
||||
}
|
||||
|
||||
AssEntry::AssEntry(wxString _data) {
|
||||
data = _data;
|
||||
Type = ENTRY_BASE;
|
||||
Valid = true;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////
|
||||
// Destructor for AssEntry
|
||||
AssEntry::~AssEntry() {
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////
|
||||
// Comparison for STL Sort
|
||||
bool operator < (const AssEntry &t1, const AssEntry &t2) {
|
||||
return (t1.StartMS < t2.StartMS);
|
||||
}
|
||||
|
||||
|
||||
////////////////////// AssDialogue //////////////////////
|
||||
// Constructs AssDialogue
|
||||
AssDialogue::AssDialogue() {
|
||||
|
|
|
@ -41,6 +41,34 @@
|
|||
#include "ass_entry.h"
|
||||
|
||||
|
||||
////////////////////// AssEntry //////////////////////
|
||||
///////////////////////
|
||||
// Constructs AssEntry
|
||||
AssEntry::AssEntry() {
|
||||
Type = ENTRY_BASE;
|
||||
Valid = true;
|
||||
}
|
||||
|
||||
AssEntry::AssEntry(wxString _data) {
|
||||
data = _data;
|
||||
Type = ENTRY_BASE;
|
||||
Valid = true;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////
|
||||
// Destructor for AssEntry
|
||||
AssEntry::~AssEntry() {
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////
|
||||
// Comparison for STL Sort
|
||||
bool operator < (const AssEntry &t1, const AssEntry &t2) {
|
||||
return (t1.StartMS < t2.StartMS);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// Returns an entry as dialogue if possible, else, returns NULL
|
||||
AssDialogue *AssEntry::GetAsDialogue(AssEntry *base) {
|
||||
|
|
Loading…
Reference in a new issue