A few inline and const changes
This commit is contained in:
parent
159d086af4
commit
0de0676092
|
@ -464,7 +464,7 @@ void Calc::drawDispay()
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
void Calc::sendOnButtonAccelerator()
|
inline void Calc::sendOnButtonAccelerator()
|
||||||
{
|
{
|
||||||
finalcut::FAccelEvent a_ev(fc::Accelerator_Event, getFocusWidget());
|
finalcut::FAccelEvent a_ev(fc::Accelerator_Event, getFocusWidget());
|
||||||
calculator_buttons[On]->onAccel(&a_ev);
|
calculator_buttons[On]->onAccel(&a_ev);
|
||||||
|
|
|
@ -286,8 +286,7 @@ void RotoZoomer::adjustSize()
|
||||||
// main part
|
// main part
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
int main (int argc, char* argv[])
|
int main (int argc, char* argv[])
|
||||||
{
|
{
|
||||||
constexpr int iterations = 314;
|
|
||||||
bool benchmark{false};
|
bool benchmark{false};
|
||||||
finalcut::FString report{};
|
finalcut::FString report{};
|
||||||
int quit_code{0};
|
int quit_code{0};
|
||||||
|
@ -310,6 +309,7 @@ int main (int argc, char* argv[])
|
||||||
app.setNonBlockingRead();
|
app.setNonBlockingRead();
|
||||||
|
|
||||||
// Create a simple dialog box
|
// Create a simple dialog box
|
||||||
|
constexpr int iterations = 314;
|
||||||
RotoZoomer roto(&app, benchmark, iterations);
|
RotoZoomer roto(&app, benchmark, iterations);
|
||||||
|
|
||||||
if ( benchmark )
|
if ( benchmark )
|
||||||
|
|
|
@ -55,8 +55,8 @@ sInt64 StringToNumber (const finalcut::FString& str)
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
bool isLessThanInteger ( const finalcut::FString& lhs
|
inline bool isLessThanInteger ( const finalcut::FString& lhs
|
||||||
, const finalcut::FString& rhs )
|
, const finalcut::FString& rhs )
|
||||||
{
|
{
|
||||||
const sInt64 l_number = StringToNumber(lhs);
|
const sInt64 l_number = StringToNumber(lhs);
|
||||||
const sInt64 r_number = StringToNumber(rhs);
|
const sInt64 r_number = StringToNumber(rhs);
|
||||||
|
@ -64,8 +64,8 @@ bool isLessThanInteger ( const finalcut::FString& lhs
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
bool isLessThanDouble ( const finalcut::FString& lhs
|
inline bool isLessThanDouble ( const finalcut::FString& lhs
|
||||||
, const finalcut::FString& rhs )
|
, const finalcut::FString& rhs )
|
||||||
{
|
{
|
||||||
std::setlocale(LC_NUMERIC, "C");
|
std::setlocale(LC_NUMERIC, "C");
|
||||||
const double l_number = lhs.toDouble();
|
const double l_number = lhs.toDouble();
|
||||||
|
@ -74,8 +74,8 @@ bool isLessThanDouble ( const finalcut::FString& lhs
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
bool isGreaterThanInteger ( const finalcut::FString& lhs
|
inline bool isGreaterThanInteger ( const finalcut::FString& lhs
|
||||||
, const finalcut::FString& rhs )
|
, const finalcut::FString& rhs )
|
||||||
{
|
{
|
||||||
const sInt64 l_number = StringToNumber(lhs);
|
const sInt64 l_number = StringToNumber(lhs);
|
||||||
const sInt64 r_number = StringToNumber(rhs);
|
const sInt64 r_number = StringToNumber(rhs);
|
||||||
|
@ -83,7 +83,7 @@ bool isGreaterThanInteger ( const finalcut::FString& lhs
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
bool isGreaterThanDouble ( const finalcut::FString& lhs
|
inline bool isGreaterThanDouble ( const finalcut::FString& lhs
|
||||||
, const finalcut::FString& rhs )
|
, const finalcut::FString& rhs )
|
||||||
{
|
{
|
||||||
std::setlocale(LC_NUMERIC, "C");
|
std::setlocale(LC_NUMERIC, "C");
|
||||||
|
|
|
@ -916,7 +916,7 @@ inline const char* FTermDetection::secDA_Analysis_32 (const char[])
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline const char* FTermDetection::secDA_Analysis_65 (const char current_termtype[])
|
inline const char* FTermDetection::secDA_Analysis_65 (const char current_termtype[])
|
||||||
{
|
{
|
||||||
// Terminal ID 65 - DEC VT525
|
// Terminal ID 65 - DEC VT525 and VTE >= 0.53.0
|
||||||
|
|
||||||
return secDA_Analysis_1 (current_termtype);
|
return secDA_Analysis_1 (current_termtype);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1071,7 +1071,7 @@ void FVTerm::putArea (const FPoint& pos, const FTermArea* area)
|
||||||
// Copies the given area block to the virtual terminal position
|
// Copies the given area block to the virtual terminal position
|
||||||
|
|
||||||
FChar* tc{}; // terminal character
|
FChar* tc{}; // terminal character
|
||||||
FChar* ac{}; // area character
|
const FChar* ac{}; // area character
|
||||||
|
|
||||||
if ( ! area || ! area->visible )
|
if ( ! area || ! area->visible )
|
||||||
return;
|
return;
|
||||||
|
@ -1610,7 +1610,7 @@ void FVTerm::updateCharacter ( const FTermArea* area
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
bool FVTerm::updateVTermCharacter ( FTermArea* area
|
bool FVTerm::updateVTermCharacter ( const FTermArea* area
|
||||||
, const FPoint& area_pos
|
, const FPoint& area_pos
|
||||||
, const FPoint& terminal_pos )
|
, const FPoint& terminal_pos )
|
||||||
{
|
{
|
||||||
|
|
|
@ -414,7 +414,7 @@ class FVTerm
|
||||||
static void updateCharacter ( const FTermArea*
|
static void updateCharacter ( const FTermArea*
|
||||||
, const FPoint&
|
, const FPoint&
|
||||||
, const FPoint& );
|
, const FPoint& );
|
||||||
static bool updateVTermCharacter ( FTermArea*
|
static bool updateVTermCharacter ( const FTermArea*
|
||||||
, const FPoint&
|
, const FPoint&
|
||||||
, const FPoint& );
|
, const FPoint& );
|
||||||
void updateVTerm();
|
void updateVTerm();
|
||||||
|
|
|
@ -71,7 +71,7 @@ void SGRoptimizer::findParameter()
|
||||||
// Find SGR parameter
|
// Find SGR parameter
|
||||||
for (std::size_t i = 0; i < len; i++)
|
for (std::size_t i = 0; i < len; i++)
|
||||||
{
|
{
|
||||||
if ( csi == true )
|
if ( csi )
|
||||||
{
|
{
|
||||||
if ( start == NOT_SET )
|
if ( start == NOT_SET )
|
||||||
start = i;
|
start = i;
|
||||||
|
|
Loading…
Reference in New Issue