mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Minor fixes for compiler warnings.
This commit is contained in:
parent
5b2a49ed5a
commit
2918e8d886
4 changed files with 9 additions and 11 deletions
|
|
@ -63,11 +63,11 @@ public:
|
|||
virtual void deleteItem();
|
||||
virtual void deleteAllSelectedItems();
|
||||
virtual void showDocument();
|
||||
virtual void showPopupMenu();
|
||||
virtual void showMultiSelectionPopupMenu();
|
||||
virtual void showRenameBox();
|
||||
|
||||
void launchPopupMenu (PopupMenu&); // runs asynchronously, and produces a callback to handlePopupMenuResult().
|
||||
virtual void showPopupMenu();
|
||||
virtual void handlePopupMenuResult (int resultCode);
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -122,17 +122,15 @@ static const String timeToTimecodeString (const double seconds)
|
|||
{
|
||||
const double absSecs = fabs (seconds);
|
||||
|
||||
const int hours = (int) (absSecs / (60.0 * 60.0));
|
||||
const int hours = (int) (absSecs / (60.0 * 60.0));
|
||||
const int mins = ((int) (absSecs / 60.0)) % 60;
|
||||
const int secs = ((int) absSecs) % 60;
|
||||
|
||||
String s;
|
||||
if (seconds < 0)
|
||||
s = "-";
|
||||
String s (seconds < 0 ? "-" : "");
|
||||
|
||||
s << String (hours).paddedLeft ('0', 2) << ":"
|
||||
<< String (mins).paddedLeft ('0', 2) << ":"
|
||||
<< String (secs).paddedLeft ('0', 2) << ":"
|
||||
<< String (mins) .paddedLeft ('0', 2) << ":"
|
||||
<< String (secs) .paddedLeft ('0', 2) << ":"
|
||||
<< String (roundToInt (absSecs * 1000) % 1000).paddedLeft ('0', 3);
|
||||
|
||||
return s;
|
||||
|
|
@ -149,7 +147,7 @@ static const String ppqToBarsBeatsString (double ppq, double /*lastBarPPQ*/, int
|
|||
|
||||
const int bar = ((int) ppq) / ppqPerBar + 1;
|
||||
const int beat = ((int) beats) + 1;
|
||||
const int ticks = ((int) (fmod (beats, 1.0) * 960.0));
|
||||
const int ticks = ((int) (fmod (beats, 1.0) * 960.0 + 0.5));
|
||||
|
||||
String s;
|
||||
s << bar << '|' << beat << '|' << ticks;
|
||||
|
|
|
|||
|
|
@ -83,11 +83,11 @@ void PNGAPI
|
|||
png_err(png_structp png_ptr)
|
||||
{
|
||||
if (png_ptr != NULL && png_ptr->error_fn != NULL)
|
||||
(*(png_ptr->error_fn))(png_ptr, '\0');
|
||||
(*(png_ptr->error_fn))(png_ptr, 0);
|
||||
|
||||
/* If the custom handler doesn't exist, or if it returns,
|
||||
use the default handler, which will not return. */
|
||||
png_default_error(png_ptr, '\0');
|
||||
png_default_error(png_ptr, 0);
|
||||
}
|
||||
#endif /* PNG_NO_ERROR_TEXT */
|
||||
|
||||
|
|
|
|||
|
|
@ -1313,7 +1313,7 @@ png_check_keyword(png_structp png_ptr, png_charp key, png_charpp new_key)
|
|||
if (key_len > 79)
|
||||
{
|
||||
png_warning(png_ptr, "keyword length must be 1 - 79 characters");
|
||||
new_key[79] = '\0';
|
||||
(*new_key)[79] = '\0';
|
||||
key_len = 79;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue