A few inline and const changes

This commit is contained in:
Markus Gans 2020-04-26 20:45:57 +02:00
parent 159d086af4
commit 0de0676092
7 changed files with 15 additions and 15 deletions

View File

@ -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);

View File

@ -287,7 +287,6 @@ void RotoZoomer::adjustSize()
//---------------------------------------------------------------------- //----------------------------------------------------------------------
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 )

View File

@ -55,7 +55,7 @@ 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);
@ -64,7 +64,7 @@ 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");
@ -74,7 +74,7 @@ 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);
@ -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");

View File

@ -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);
} }

View File

@ -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 )
{ {

View File

@ -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();

View File

@ -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;