Skip to content

Commit

Permalink
Copya and Paste Anti-Pattern strikes again! Renamed FreeType usage to…
Browse files Browse the repository at this point in the history
… Revisions to correct previous mistake when copying and modifying the ReaderWriter.
  • Loading branch information
robertosfield committed Sep 19, 2011
1 parent 3279e9a commit f9dffdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/osgPlugins/revisions/ReaderWriterRevisions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
#include <osgDB/DatabaseRevisions>
#include <osg/Notify>

class ReaderWriterFreeType : public osgDB::ReaderWriter
class ReaderWriterRevisions : public osgDB::ReaderWriter
{
public:
ReaderWriterFreeType()
ReaderWriterRevisions()
{
supportsExtension("revisions","list of revision files");
supportsExtension("added","revision file containing list of added files");
supportsExtension("removed","revision file containing list of removed files");
supportsExtension("modified","revision file containing list of modified files");
}

virtual const char* className() const { return "FreeType Font Reader/Writer"; }
virtual const char* className() const { return "Revisions Font Reader/Writer"; }

virtual ReadResult readObject(const std::string& file, const osgDB::ReaderWriter::Options* options) const
{
Expand Down Expand Up @@ -212,4 +212,4 @@ class ReaderWriterFreeType : public osgDB::ReaderWriter

// now register with Registry to instantiate the above
// reader/writer.
REGISTER_OSGPLUGIN(freetype, ReaderWriterFreeType)
REGISTER_OSGPLUGIN(revisions, ReaderWriterRevisions)

0 comments on commit f9dffdb

Please sign in to comment.