* Fixed broken comparisons introduced with r25702.
* Removed old OpenBeOS namespace leftover. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25703 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,16 +9,16 @@
|
|||||||
* Ingo Weinhold, [email protected]
|
* Ingo Weinhold, [email protected]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\file Path.cpp
|
\file Path.cpp
|
||||||
BPath implementation.
|
BPath implementation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <Path.h>
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
#include <Path.h>
|
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
#include <StorageDefs.h>
|
#include <StorageDefs.h>
|
||||||
@@ -30,10 +30,6 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
#ifdef USE_OPENBEOS_NAMESPACE
|
|
||||||
using namespace OpenBeOS;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
//! Creates an uninitialized BPath object.
|
//! Creates an uninitialized BPath object.
|
||||||
BPath::BPath()
|
BPath::BPath()
|
||||||
@@ -424,8 +420,8 @@ BPath::operator==(const BPath &item) const
|
|||||||
bool
|
bool
|
||||||
BPath::operator==(const char *path) const
|
BPath::operator==(const char *path) const
|
||||||
{
|
{
|
||||||
return ((InitCheck() != B_OK && (path == NULL))
|
return (InitCheck() != B_OK && path == NULL)
|
||||||
|| ((fName && path) && strcmp(fName, path)) == 0);
|
|| (fName != NULL && path != NULL && !strcmp(fName, path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,16 +8,16 @@
|
|||||||
* Ingo Weinhold, [email protected]
|
* Ingo Weinhold, [email protected]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\file ResourcesContainer.cpp
|
\file ResourcesContainer.cpp
|
||||||
ResourcesContainer implementation.
|
ResourcesContainer implementation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "ResourcesContainer.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "ResourcesContainer.h"
|
|
||||||
#include "ResourceItem.h"
|
#include "ResourceItem.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -151,9 +151,9 @@ ResourcesContainer::IndexOf(type_code type, const char *name) const
|
|||||||
ResourceItem *item = ResourceAt(i);
|
ResourceItem *item = ResourceAt(i);
|
||||||
const char *itemName = item->Name();
|
const char *itemName = item->Name();
|
||||||
if (item->Type() == type
|
if (item->Type() == type
|
||||||
&& (((name == NULL && itemName == NULL)
|
&& ((name == NULL && itemName == NULL)
|
||||||
|| (name != NULL && itemName != NULL))
|
|| (name != NULL && itemName != NULL
|
||||||
&& !strcmp(name, itemName))) {
|
&& !strcmp(name, itemName)))) {
|
||||||
index = i;
|
index = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -216,5 +216,5 @@ ResourcesContainer::IsModified() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}; // namespace Storage
|
} // namespace Storage
|
||||||
}; // namespace BPrivate
|
} // namespace BPrivate
|
||||||
|
|||||||
Reference in New Issue
Block a user