Fix FTBFS with stricter C++11

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 958fa42aa9)
pull/16/head
Slávek Banko 6 years ago
parent 086cc055d4
commit bd4b955ff6
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1514,7 +1514,7 @@ static void tdeinit_library_path()
TQCString display = getenv(DISPLAY);
if (display.isEmpty())
{
fprintf(stderr, "[tdeinit] Aborting. $"DISPLAY" is not set.\n");
fprintf(stderr, "[tdeinit] Aborting. $" DISPLAY " is not set.\n");
exit(255);
}
int i;

@ -2833,11 +2833,11 @@ bool KeramikStyle::objectEventHandler( const TQStyleControlElementData &ceData,
//CHECKME: Not sure the rects are perfect..
XRectangle rects[5] = {
{0, 0, resize->size().width()-2, resize->size().height()-6},
{0, resize->size().height()-6, resize->size().width()-2, 1},
{1, resize->size().height()-5, resize->size().width()-3, 1},
{2, resize->size().height()-4, resize->size().width()-5, 1},
{3, resize->size().height()-3, resize->size().width()-7, 1}
{0, 0, (unsigned short)(resize->size().width()-2), (unsigned short)(resize->size().height()-6)},
{0, (short)(resize->size().height()-6), (unsigned short)(resize->size().width()-2), 1},
{1, (short)(resize->size().height()-5), (unsigned short)(resize->size().width()-3), 1},
{2, (short)(resize->size().height()-4), (unsigned short)(resize->size().width()-5), 1},
{3, (short)(resize->size().height()-3), (unsigned short)(resize->size().width()-7), 1}
};
XShapeCombineRectangles(tqt_xdisplay(), listbox->handle(), ShapeBounding, 0, 0,

Loading…
Cancel
Save