Skip to content

Commit

Permalink
Refactor|libgui|FontBank: Renamed some interface functions
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 13, 2013
1 parent 78c2188 commit a744357
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doomsday/client/src/ui/windowsystem.cpp
Expand Up @@ -36,7 +36,7 @@ DENG2_PIMPL(WindowSystem)

Instance(Public *i) : Base(i)
{
fonts.readInfo(App::fileSystem().find("defaultstyle.pack/fonts.dei"));
fonts.addFromInfo(App::fileSystem().find("defaultstyle.pack/fonts.dei"));
}

~Instance()
Expand Down
4 changes: 2 additions & 2 deletions doomsday/libgui/include/de/gui/fontbank.h
Expand Up @@ -39,14 +39,14 @@ class LIBGUI_PUBLIC FontBank : public Bank
*
* @param source Info source containing font definitions.
*/
void readInfo(String const &source);
void addFromInfo(String const &source);

/**
* Creates a number of fonts based on information in an Info document.
*
* @param source File with Info source containing font definitions.
*/
void readInfo(File const &file);
void addFromInfo(File const &file);

/**
* Finds a specific font.
Expand Down
6 changes: 3 additions & 3 deletions doomsday/libgui/src/fontbank.cpp
Expand Up @@ -95,7 +95,7 @@ FontBank::FontBank()
: Bank(DisableHotStorage), d(new Instance(this))
{}

void FontBank::readInfo(String const &source)
void FontBank::addFromInfo(String const &source)
{
LOG_AS("FontBank");
try
Expand All @@ -114,9 +114,9 @@ void FontBank::readInfo(String const &source)
}
}

void FontBank::readInfo(File const &file)
void FontBank::addFromInfo(File const &file)
{
readInfo(String::fromUtf8(Block(file)));
addFromInfo(String::fromUtf8(Block(file)));
d->modTime = file.status().modifiedAt;
}

Expand Down

0 comments on commit a744357

Please sign in to comment.