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());
|
||||
calculator_buttons[On]->onAccel(&a_ev);
|
||||
|
|
|
@ -287,7 +287,6 @@ void RotoZoomer::adjustSize()
|
|||
//----------------------------------------------------------------------
|
||||
int main (int argc, char* argv[])
|
||||
{
|
||||
constexpr int iterations = 314;
|
||||
bool benchmark{false};
|
||||
finalcut::FString report{};
|
||||
int quit_code{0};
|
||||
|
@ -310,6 +309,7 @@ int main (int argc, char* argv[])
|
|||
app.setNonBlockingRead();
|
||||
|
||||
// Create a simple dialog box
|
||||
constexpr int iterations = 314;
|
||||
RotoZoomer roto(&app, benchmark, iterations);
|
||||
|
||||
if ( benchmark )
|
||||
|
|
|
@ -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 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 )
|
||||
{
|
||||
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 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 )
|
||||
{
|
||||
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[])
|
||||
{
|
||||
// Terminal ID 65 - DEC VT525
|
||||
// Terminal ID 65 - DEC VT525 and VTE >= 0.53.0
|
||||
|
||||
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
|
||||
|
||||
FChar* tc{}; // terminal character
|
||||
FChar* ac{}; // area character
|
||||
const FChar* ac{}; // area character
|
||||
|
||||
if ( ! area || ! area->visible )
|
||||
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& terminal_pos )
|
||||
{
|
||||
|
|
|
@ -414,7 +414,7 @@ class FVTerm
|
|||
static void updateCharacter ( const FTermArea*
|
||||
, const FPoint&
|
||||
, const FPoint& );
|
||||
static bool updateVTermCharacter ( FTermArea*
|
||||
static bool updateVTermCharacter ( const FTermArea*
|
||||
, const FPoint&
|
||||
, const FPoint& );
|
||||
void updateVTerm();
|
||||
|
|
|
@ -71,7 +71,7 @@ void SGRoptimizer::findParameter()
|
|||
// Find SGR parameter
|
||||
for (std::size_t i = 0; i < len; i++)
|
||||
{
|
||||
if ( csi == true )
|
||||
if ( csi )
|
||||
{
|
||||
if ( start == NOT_SET )
|
||||
start = i;
|
||||
|
|
Loading…
Reference in New Issue