History log of /haiku/src/kits/storage/Resources.cpp
Revision Date Author Comments
# 32a6b045 26-Jul-2015 Adrien Destugues <pulkomandy@gmail.com>

PVS76: useless check of null pointer

Refactor BResources::WriteResource to return early in case of errors,
instead of checking permanently if (error == B_OK). Makes the code more
readable and removes some useless checks.


# a712cdd0 05-Nov-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

image.h: Add B_{APP,CURRENT}_IMAGE_SYMBOL macros

* Those can be used in cases where a pointer to an image symbol is
required.
* Adjust BResources::SetToImage() accordingly.


# 207389a0 30-Jun-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

BResources::SetTo(): try opening read-only on error

Fixes #9843.


# 6d5fae2a 15-Feb-2013 John Scipione <jscipione@gmail.com>

Move resources docs to Haiku Book

* Remove docs from Resources.cpp (leaving the brief description).
* Reformat Resources.h to style it like so many other header files.
* There is one not-entirely style based change. I renamed the outSize
parameter or the LoadResource method to _size as is our convention for out
parameters.


# 45ec6bf3 14-Jun-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

BResources::SetToImage(): Compile conditionally based on
HAIKU_TARGET_PLATFORM_HAIKU, so the file can also be compiled for the host
platform.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42178 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9546aa51 21-Feb-2010 Rene Gollent <anevilyak@gmail.com>

Style cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35555 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cf139460 21-Feb-2010 Rene Gollent <anevilyak@gmail.com>

Initialize members for all constructors. Otherwise using those constructors can potentially crash in Unset().



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35552 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6eb09230 01-Feb-2009 Michael Lotz <mmlr@mlotz.ch>

* Resolve further warnings on GCC4.
* Enable -Werror on GCC4 builds as well (limited to the same selected targets).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29118 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1cac47bf 31-Jan-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Added a few more constructors and initialization methods. Among them two
SetToImage() variants for initializing the object to the resources of
the shared object file belonging to a loaded image. Should be handy for
libraries and add-ons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16176 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 78b31a7c 22-Jan-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed unnecessary definition. Added debug macros.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10954 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 98833b15 11-Jun-2003 haydentech <haydentech@nowhere.fake>

Cleaned-up the std namespace support


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3475 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a0a3f269 03-Jun-2003 haydentech <haydentech@nowhere.fake>

Namespace- and gcc3-related fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3405 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 09d84e61 12-Aug-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

+ Changed StorageKit namespace to BPrivate::Storage
+ Changed Sniffer namespace to BPrivate::Storage::Sniffer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@714 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 32a6b04592d9f8ad02c37bb68c62c04843c2b8d7 26-Jul-2015 Adrien Destugues <pulkomandy@gmail.com>

PVS76: useless check of null pointer

Refactor BResources::WriteResource to return early in case of errors,
instead of checking permanently if (error == B_OK). Makes the code more
readable and removes some useless checks.


# a712cdd0b1900b330057a630165855a9d971ab41 05-Nov-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

image.h: Add B_{APP,CURRENT}_IMAGE_SYMBOL macros

* Those can be used in cases where a pointer to an image symbol is
required.
* Adjust BResources::SetToImage() accordingly.


# 207389a06042e383ae5e15f37adda190e1e04ab6 30-Jun-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

BResources::SetTo(): try opening read-only on error

Fixes #9843.


# 6d5fae2a5ae5dc28b2c4b2aa3d98085d13af8a1e 15-Feb-2013 John Scipione <jscipione@gmail.com>

Move resources docs to Haiku Book

* Remove docs from Resources.cpp (leaving the brief description).
* Reformat Resources.h to style it like so many other header files.
* There is one not-entirely style based change. I renamed the outSize
parameter or the LoadResource method to _size as is our convention for out
parameters.


# 45ec6bf344c087d4b21ec7709d82b82c45e388bd 14-Jun-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

BResources::SetToImage(): Compile conditionally based on
HAIKU_TARGET_PLATFORM_HAIKU, so the file can also be compiled for the host
platform.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42178 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9546aa512f26ee36fd1b03e10873d9c5762426ea 21-Feb-2010 Rene Gollent <anevilyak@gmail.com>

Style cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35555 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cf139460f606b13aed162f245f8282170e363350 21-Feb-2010 Rene Gollent <anevilyak@gmail.com>

Initialize members for all constructors. Otherwise using those constructors can potentially crash in Unset().



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35552 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6eb09230bae52bcdf045e1f1920b67205c29adc8 01-Feb-2009 Michael Lotz <mmlr@mlotz.ch>

* Resolve further warnings on GCC4.
* Enable -Werror on GCC4 builds as well (limited to the same selected targets).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29118 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1cac47bfa9e4c1da85e0f965c06ac11a0b067140 31-Jan-2006 Ingo Weinhold <ingo_weinhold@gmx.de>

Added a few more constructors and initialization methods. Among them two
SetToImage() variants for initializing the object to the resources of
the shared object file belonging to a loaded image. Should be handy for
libraries and add-ons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16176 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 78b31a7c446d47973aaf6a01e05d1cf3cb812114 22-Jan-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed unnecessary definition. Added debug macros.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10954 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 98833b15bf4967b0b12fda60065cda7ac83e091d 11-Jun-2003 haydentech <haydentech@nowhere.fake>

Cleaned-up the std namespace support


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3475 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a0a3f269a4eae19d6fdbffdb581e888219988160 03-Jun-2003 haydentech <haydentech@nowhere.fake>

Namespace- and gcc3-related fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3405 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 09d84e61b6c2629d253dce1e7d7e944943d3e40e 12-Aug-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

+ Changed StorageKit namespace to BPrivate::Storage
+ Changed Sniffer namespace to BPrivate::Storage::Sniffer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@714 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96