80-column limit for deskcalc
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39838 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -110,7 +110,8 @@ CalcApplication::_SaveSettings()
|
||||
fCalcWindow->Unlock();
|
||||
|
||||
if (ret < B_OK) {
|
||||
fprintf(stderr, "CalcApplication::_SaveSettings() - error from window: %s\n", strerror(ret));
|
||||
fprintf(stderr, "CalcApplication::_SaveSettings() - error from window: "
|
||||
"%s\n", strerror(ret));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -118,13 +119,15 @@ CalcApplication::_SaveSettings()
|
||||
BFile prefsFile;
|
||||
ret = _InitSettingsFile(&prefsFile, true);
|
||||
if (ret < B_OK) {
|
||||
fprintf(stderr, "CalcApplication::_SaveSettings() - error creating file: %s\n", strerror(ret));
|
||||
fprintf(stderr, "CalcApplication::_SaveSettings() - "
|
||||
"error creating file: %s\n", strerror(ret));
|
||||
return;
|
||||
}
|
||||
|
||||
ret = archive.Flatten(&prefsFile);
|
||||
if (ret < B_OK) {
|
||||
fprintf(stderr, "CalcApplication::_SaveSettings() - error flattening to file: %s\n", strerror(ret));
|
||||
fprintf(stderr, "CalcApplication::_SaveSettings() - error flattening "
|
||||
"to file: %s\n", strerror(ret));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -428,7 +428,8 @@ ExpressionTextView::SaveSettings(BMessage* archive) const
|
||||
int32 count = fPreviousExpressions.CountItems();
|
||||
for (int32 i = 0; i < count; i++) {
|
||||
BString* item = (BString*)fPreviousExpressions.ItemAtFast(i);
|
||||
status_t ret = archive->AddString("previous expression", item->String());
|
||||
status_t ret = archive->AddString("previous expression",
|
||||
item->String());
|
||||
if (ret < B_OK)
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@ Application DeskCalc :
|
||||
DeskCalc.cpp
|
||||
ExpressionTextView.cpp
|
||||
InputTextView.cpp
|
||||
: be $(TARGET_LIBSTDC++) $(HAIKU_LOCALE_LIBS) media libexpression_parser.a libmapm.a
|
||||
: be $(TARGET_LIBSTDC++) $(HAIKU_LOCALE_LIBS) media libexpression_parser.a
|
||||
libmapm.a
|
||||
: DeskCalc.rdef
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user