Added missing virtual destructors.
Originally committed to SVN as r2043.
This commit is contained in:
parent
3cade86767
commit
6e5f23c1cd
9 changed files with 21 additions and 15 deletions
|
@ -53,6 +53,7 @@
|
||||||
DebugInformationFormat="4"
|
DebugInformationFormat="4"
|
||||||
DisableSpecificWarnings="4996"
|
DisableSpecificWarnings="4996"
|
||||||
ForcedIncludeFiles="prec.h"
|
ForcedIncludeFiles="prec.h"
|
||||||
|
EnablePREfast="false"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCManagedResourceCompilerTool"
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
|
|
@ -342,8 +342,8 @@ void FormatHandlerASS::WriteSection(TextFileWriter &writer,SectionPtr section)
|
||||||
// Write properties
|
// Write properties
|
||||||
size_t props = section->GetPropertyCount();
|
size_t props = section->GetPropertyCount();
|
||||||
for (size_t i=0;i<props;i++) {
|
for (size_t i=0;i<props;i++) {
|
||||||
String name = section->GetPropertyName(i);
|
String propName = section->GetPropertyName(i);
|
||||||
writer.WriteLineToFile(name + _T(": ") + section->GetProperty(name));
|
writer.WriteLineToFile(propName + _T(": ") + section->GetProperty(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write contents
|
// Write contents
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
#include "section.h"
|
#include "section.h"
|
||||||
#include "section_entry_dialogue.h"
|
#include "section_entry_dialogue.h"
|
||||||
#include "section_entry_style.h"
|
#include "section_entry_style.h"
|
||||||
|
#include "tr1.h"
|
||||||
|
|
||||||
namespace Aegilib {
|
namespace Aegilib {
|
||||||
|
|
||||||
|
@ -119,7 +120,7 @@ namespace Aegilib {
|
||||||
String effect;
|
String effect;
|
||||||
String actor;
|
String actor;
|
||||||
Time start,end;
|
Time start,end;
|
||||||
int margin[4];
|
array<int,4> margin;
|
||||||
int layer;
|
int layer;
|
||||||
bool isComment;
|
bool isComment;
|
||||||
|
|
||||||
|
@ -143,7 +144,7 @@ namespace Aegilib {
|
||||||
Time GetEndTime() const { return end; }
|
Time GetEndTime() const { return end; }
|
||||||
bool IsComment() const { return isComment; }
|
bool IsComment() const { return isComment; }
|
||||||
int GetLayer() const { return layer; }
|
int GetLayer() const { return layer; }
|
||||||
int GetMargin(int n) const { return margin[n]; }
|
int GetMargin(int n) const { return margin.at(n); }
|
||||||
const String& GetStyle() const { return style; }
|
const String& GetStyle() const { return style; }
|
||||||
const String& GetActor() const { return actor; }
|
const String& GetActor() const { return actor; }
|
||||||
const String& GetUserField() const { return effect; }
|
const String& GetUserField() const { return effect; }
|
||||||
|
@ -154,7 +155,7 @@ namespace Aegilib {
|
||||||
void SetEndTime(Time setEnd) { end = setEnd; }
|
void SetEndTime(Time setEnd) { end = setEnd; }
|
||||||
void SetComment(bool _isComment) { isComment = _isComment; }
|
void SetComment(bool _isComment) { isComment = _isComment; }
|
||||||
void SetLayer(int _layer) { layer = _layer; }
|
void SetLayer(int _layer) { layer = _layer; }
|
||||||
void SetMargin(int _margin,int value) { margin[_margin] = value; }
|
void SetMargin(int _margin,int value) { margin.at(_margin) = value; }
|
||||||
void SetStyle(const String &_style) { style = _style; }
|
void SetStyle(const String &_style) { style = _style; }
|
||||||
void SetUserField(const String &userField) { effect = userField; }
|
void SetUserField(const String &userField) { effect = userField; }
|
||||||
};
|
};
|
||||||
|
@ -166,8 +167,8 @@ namespace Aegilib {
|
||||||
String font;
|
String font;
|
||||||
float fontSize;
|
float fontSize;
|
||||||
|
|
||||||
Colour colour[5]; // 0 = Primary, 1 = Secondary, 2 = Tertiary, 3 = Outline, 4 = Shadow
|
array<Colour,5> colour; // 0 = Primary, 1 = Secondary, 2 = Tertiary, 3 = Outline, 4 = Shadow
|
||||||
int margin[4];
|
array<int,4> margin;
|
||||||
|
|
||||||
bool bold;
|
bool bold;
|
||||||
bool italic;
|
bool italic;
|
||||||
|
@ -200,8 +201,8 @@ namespace Aegilib {
|
||||||
String GetName() const { return name; }
|
String GetName() const { return name; }
|
||||||
String GetFontName() const { return font; }
|
String GetFontName() const { return font; }
|
||||||
float GetFontSize() const { return fontSize; }
|
float GetFontSize() const { return fontSize; }
|
||||||
Colour GetColour(int n) const { return colour[n]; }
|
Colour GetColour(int n) const { return colour.at(n); }
|
||||||
int GetMargin(int n) const { return margin[n]; }
|
int GetMargin(int n) const { return margin.at(n); }
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -74,7 +74,7 @@ void TextFileReader::SetEncodingConfiguration() {
|
||||||
// Set encoding configuration
|
// Set encoding configuration
|
||||||
swap = false;
|
swap = false;
|
||||||
Is16 = false;
|
Is16 = false;
|
||||||
conv = shared_ptr<wxMBConv>();
|
//conv = shared_ptr<wxMBConv>();
|
||||||
if (encoding == _T("UTF-8")) {
|
if (encoding == _T("UTF-8")) {
|
||||||
conv = shared_ptr<wxMBConv> (new wxMBConvUTF8);
|
conv = shared_ptr<wxMBConv> (new wxMBConvUTF8);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "tr1.h"
|
#include "aegistring.h"
|
||||||
using namespace Aegilib;
|
using namespace Aegilib;
|
||||||
|
|
||||||
|
|
||||||
|
@ -57,17 +57,17 @@ String Aegilib::GetLibraryURL()
|
||||||
|
|
||||||
/////////////////////////
|
/////////////////////////
|
||||||
// Host application data
|
// Host application data
|
||||||
static shared_ptr<String> hostName;
|
static String* hostName = NULL;
|
||||||
static shared_ptr<String> hostURL;
|
static String* hostURL = NULL;
|
||||||
|
|
||||||
void Aegilib::SetHostApplicationName(const String name)
|
void Aegilib::SetHostApplicationName(const String name)
|
||||||
{
|
{
|
||||||
if (!hostName) hostName = shared_ptr<String> (new String());
|
if (!hostName) hostName = new String();
|
||||||
*hostName = name;
|
*hostName = name;
|
||||||
}
|
}
|
||||||
void Aegilib::SetHostApplicationURL(const String url)
|
void Aegilib::SetHostApplicationURL(const String url)
|
||||||
{
|
{
|
||||||
if (!hostURL) hostName = shared_ptr<String> (new String());
|
if (!hostURL) hostURL = new String();
|
||||||
*hostURL = url;
|
*hostURL = url;
|
||||||
}
|
}
|
||||||
String Aegilib::GetHostApplicationName()
|
String Aegilib::GetHostApplicationName()
|
||||||
|
|
|
@ -97,5 +97,6 @@ public:
|
||||||
// Factory
|
// Factory
|
||||||
class AudioPlayerFactory {
|
class AudioPlayerFactory {
|
||||||
public:
|
public:
|
||||||
|
virtual ~AudioPlayerFactory() {}
|
||||||
virtual AudioPlayer *CreatePlayer()=0;
|
virtual AudioPlayer *CreatePlayer()=0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -83,5 +83,6 @@ public:
|
||||||
// Factory
|
// Factory
|
||||||
class AudioProviderFactory {
|
class AudioProviderFactory {
|
||||||
public:
|
public:
|
||||||
|
virtual ~AudioProviderFactory() {}
|
||||||
virtual AudioProvider *CreateProvider(Aegisub::String filename)=0;
|
virtual AudioProvider *CreateProvider(Aegisub::String filename)=0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -64,5 +64,6 @@ public:
|
||||||
// Factory
|
// Factory
|
||||||
class SpellCheckerFactory {
|
class SpellCheckerFactory {
|
||||||
public:
|
public:
|
||||||
|
virtual ~SpellCheckerFactory() {}
|
||||||
virtual SpellChecker *CreateSpellChecker()=0;
|
virtual SpellChecker *CreateSpellChecker()=0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -87,5 +87,6 @@ public:
|
||||||
// Factory
|
// Factory
|
||||||
class VideoProviderFactory {
|
class VideoProviderFactory {
|
||||||
public:
|
public:
|
||||||
|
virtual ~VideoProviderFactory() {}
|
||||||
virtual VideoProvider *CreateProvider(Aegisub::String video,double fps=0.0)=0;
|
virtual VideoProvider *CreateProvider(Aegisub::String video,double fps=0.0)=0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue