address compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10086 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -95,7 +95,7 @@ static struct PageFormat
|
|||||||
|
|
||||||
static void GetPageFormat(float w, float h, BString& label) {
|
static void GetPageFormat(float w, float h, BString& label) {
|
||||||
w = floor(w + 0.5); h = floor(h + 0.5);
|
w = floor(w + 0.5); h = floor(h + 0.5);
|
||||||
for (int i = 0; i < sizeof(pageFormat) / sizeof(struct PageFormat); i ++) {
|
for (uint i = 0; i < sizeof(pageFormat) / sizeof(struct PageFormat); i ++) {
|
||||||
struct PageFormat& pf = pageFormat[i];
|
struct PageFormat& pf = pageFormat[i];
|
||||||
if (pf.width == w && pf.height == h || pf.width == h && pf.height == w) {
|
if (pf.width == w && pf.height == h || pf.width == h && pf.height == w) {
|
||||||
label = pf.label; return;
|
label = pf.label; return;
|
||||||
@@ -128,7 +128,6 @@ ConfigWindow::ConfigWindow(config_setup_kind kind, Printer* defaultPrinter, BMes
|
|||||||
|
|
||||||
float left = 10, top = 5;
|
float left = 10, top = 5;
|
||||||
BRect r(left, top, 160, 15);
|
BRect r(left, top, 160, 15);
|
||||||
BStringView* string;
|
|
||||||
|
|
||||||
// print selection popup menu
|
// print selection popup menu
|
||||||
BPopUpMenu* menu = new BPopUpMenu("Select a Printer");
|
BPopUpMenu* menu = new BPopUpMenu("Select a Printer");
|
||||||
@@ -368,7 +367,6 @@ void ConfigWindow::SetupPrintersMenu(BMenu* menu) {
|
|||||||
BAutolock lock(gLock);
|
BAutolock lock(gLock);
|
||||||
if (lock.IsLocked()) {
|
if (lock.IsLocked()) {
|
||||||
BString n;
|
BString n;
|
||||||
Printer* p;
|
|
||||||
BMessage* m;
|
BMessage* m;
|
||||||
BMenuItem* item;
|
BMenuItem* item;
|
||||||
for (int i = 0; i < Printer::CountPrinters(); i ++) {
|
for (int i = 0; i < Printer::CountPrinters(); i ++) {
|
||||||
@@ -448,7 +446,7 @@ void ConfigWindow::UpdateUI() {
|
|||||||
// display information about job
|
// display information about job
|
||||||
if (fKind == kJobSetup) {
|
if (fKind == kJobSetup) {
|
||||||
BString job;
|
BString job;
|
||||||
int32 first, last, copies;
|
int32 first, last;
|
||||||
if (fJobSettings.FindInt32(PSRV_FIELD_FIRST_PAGE, &first) == B_OK &&
|
if (fJobSettings.FindInt32(PSRV_FIELD_FIRST_PAGE, &first) == B_OK &&
|
||||||
fJobSettings.FindInt32(PSRV_FIELD_LAST_PAGE, &last) == B_OK) {
|
fJobSettings.FindInt32(PSRV_FIELD_LAST_PAGE, &last) == B_OK) {
|
||||||
if (first >= 1 && first <= last && last != INT_MAX) {
|
if (first >= 1 && first <= last && last != INT_MAX) {
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ status_t PrintServerApp::async_thread(void* data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
delete p;
|
delete p;
|
||||||
|
|
||||||
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user