mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
uppsrc: Fixed new clang warnings
This commit is contained in:
parent
e023fcad2a
commit
eaf8112b15
3 changed files with 6 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ namespace Upp {
|
|||
|
||||
struct Win32PrintDlg_ : PRINTDLG {
|
||||
Win32PrintDlg_() {
|
||||
memset(this, 0, sizeof(PRINTDLG));
|
||||
memset((void *)this, 0, sizeof(PRINTDLG));
|
||||
lStructSize = sizeof(PRINTDLG);
|
||||
}
|
||||
~Win32PrintDlg_() {
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@ void Pdb::VisualDisplay::Paint(Draw& w, const Rect& r, const Value& q,
|
|||
else
|
||||
if(*p.text == '\2') { // Image support
|
||||
PrettyImage img;
|
||||
memcpy(&img, ~p.text + 1, sizeof(PrettyImage));
|
||||
memcpy((void *)&img, ~p.text + 1, sizeof(PrettyImage));
|
||||
Rect r = RectC(x, y, sz.cx, sz.cy);
|
||||
Image m = DbgImg::Img();
|
||||
if(img.size.cx < 0 || img.size.cx > 10000 || img.size.cy < 0 || img.size.cy > 10000)
|
||||
|
|
|
|||
|
|
@ -14,8 +14,10 @@ struct MyApp : public TopWindow {
|
|||
p.Move(10, 10);
|
||||
p.Arc(10, 10, 0.1, M_PI, M_PI);
|
||||
// p.RoundedRectangle(2, 2, 100, 100, 0.1)
|
||||
// p.Stroke(5, Blue());
|
||||
p.Stroke(0.1, Blue());
|
||||
p.Stroke(5, Blue());
|
||||
// p.Stroke(0.1, Blue());
|
||||
|
||||
p.Circle(20, 20, 10).Stroke(1, Blue());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue