Skip to content

Commit c2c694e

Browse files
committed
Merge branch 'main' of github.com:borkowsk/SymShellLight
2 parents 71e71f1 + 52dc43d commit c2c694e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

INCL/sshutils.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
#define M_PI_4 0.785398163397448309616
3131
#endif
3232

33+
/// Pomocnicza funkcja kwadratowa dla skrócenia kodu tu i tam...
34+
template<class NUM>
35+
inline NUM sqr(const NUM& x)
36+
{ return x*x; }
37+
38+
3339
/**
3440
* @defgroup SymShellUtils Różne dodatkowe narzędzia do grafiki
3541
* \brief Zdefiniowane kolory i dodatkowe kształty

UTILS/sshutils.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626

2727
using namespace std;
2828

29-
/// Pomocnicza funkcja kwadratowa dla elegancji kodu
30-
inline int sqr(int x)
31-
{
32-
return x*x;
33-
}
34-
3529
/// Funkcja ta drukuje w obszarze nie większym niz 'maxwidth' z justowaniem
3630
/// Sekwencje określające justowanie muszą być na początku i są to:
3731
/// %@L - left , %@R - right oraz %@C - center.

0 commit comments

Comments
 (0)