mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed some whitespace style and cleaned up some code using C++11
This commit is contained in:
parent
405a6aeaed
commit
8ed41ed14b
95 changed files with 310 additions and 320 deletions
|
|
@ -286,31 +286,31 @@ bool UndoManager::redo()
|
|||
|
||||
String UndoManager::getUndoDescription() const
|
||||
{
|
||||
if (const ActionSet* const s = getCurrentSet())
|
||||
if (auto* s = getCurrentSet())
|
||||
return s->name;
|
||||
|
||||
return String();
|
||||
return {};
|
||||
}
|
||||
|
||||
String UndoManager::getRedoDescription() const
|
||||
{
|
||||
if (const ActionSet* const s = getNextSet())
|
||||
if (auto* s = getNextSet())
|
||||
return s->name;
|
||||
|
||||
return String();
|
||||
return {};
|
||||
}
|
||||
|
||||
Time UndoManager::getTimeOfUndoTransaction() const
|
||||
{
|
||||
if (const ActionSet* const s = getCurrentSet())
|
||||
if (auto* s = getCurrentSet())
|
||||
return s->time;
|
||||
|
||||
return Time();
|
||||
return {};
|
||||
}
|
||||
|
||||
Time UndoManager::getTimeOfRedoTransaction() const
|
||||
{
|
||||
if (const ActionSet* const s = getNextSet())
|
||||
if (auto* s = getNextSet())
|
||||
return s->time;
|
||||
|
||||
return Time::getCurrentTime();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue