put returns into #else to remove unreachable code warnings

This commit is contained in:
fourtf 2018-07-04 10:41:43 +02:00
parent 1064729e1a
commit 362dcb88bc

View file

@ -534,9 +534,9 @@ bool BaseWindow::handleDPICHANGED(MSG *msg)
this->updateScale();
return true;
#endif
#else
return false;
#endif
}
bool BaseWindow::handleSHOWWINDOW(MSG *msg)
@ -557,9 +557,9 @@ bool BaseWindow::handleSHOWWINDOW(MSG *msg)
this->calcButtonsSizes();
return true;
#endif
#else
return false;
#endif
}
bool BaseWindow::handleNCCALCSIZE(MSG *msg, long *result)
@ -583,9 +583,10 @@ bool BaseWindow::handleNCCALCSIZE(MSG *msg, long *result)
*result = 0;
return true;
}
#endif
return false;
#else
return false;
#endif
}
bool BaseWindow::handleSIZE(MSG *msg)
@ -602,10 +603,10 @@ bool BaseWindow::handleSIZE(MSG *msg)
}
}
}
#endif
return true;
#else
return false;
#endif
}
bool BaseWindow::handleNCHITTEST(MSG *msg, long *result)
@ -721,9 +722,9 @@ bool BaseWindow::handleNCHITTEST(MSG *msg, long *result)
return true;
}
#endif
#else
return false;
#endif
}
} // namespace chatterino