Code cleanup: spelling/indentation

This commit is contained in:
Campbell Barton 2014-05-08 04:53:05 +10:00
parent 3a8f1d5d8b
commit 65d54f34b1
7 changed files with 7 additions and 7 deletions

@ -183,7 +183,7 @@ ccl_device_inline float signf(float f)
ccl_device_inline float nonzerof(float f, float eps) ccl_device_inline float nonzerof(float f, float eps)
{ {
if(fabsf(f) < eps) if(fabsf(f) < eps)
return signf(f)*eps; return signf(f)*eps;
else else
return f; return f;

@ -42,7 +42,7 @@
/* hint to mark function arguments expected to be non-null /* hint to mark function arguments expected to be non-null
* if no arguments are given to the macro, all of pointer * if no arguments are given to the macro, all of pointer
* arguments owuld be expected to be non-null * arguments would be expected to be non-null
*/ */
#ifdef __GNUC__ #ifdef __GNUC__
# define ATTR_NONNULL(args ...) __attribute__((nonnull(args))) # define ATTR_NONNULL(args ...) __attribute__((nonnull(args)))

@ -710,7 +710,7 @@ void BLI_path_rel(char *file, const char *relfile)
* \param maxlen Maximum length of string * \param maxlen Maximum length of string
* \param suffix String to append to the original string * \param suffix String to append to the original string
* \param sep Optional separator character * \param sep Optional separator character
* \return true if succeded * \return true if succeeded
*/ */
bool BLI_path_suffix(char *string, size_t maxlen, const char *suffix, const char *sep) bool BLI_path_suffix(char *string, size_t maxlen, const char *suffix, const char *sep)
{ {

@ -1119,7 +1119,7 @@ static BMOpDefine bmo_subdivide_edges_def = {
/* /*
* Subdivide Edge-Ring. * Subdivide Edge-Ring.
* *
* Take an edge-ring, and supdivide with interpolation options. * Take an edge-ring, and subdivide with interpolation options.
*/ */
static BMOpDefine bmo_subdivide_edgering_def = { static BMOpDefine bmo_subdivide_edgering_def = {
"subdivide_edgering", "subdivide_edgering",

@ -179,7 +179,7 @@ VCOLDataWrapper::VCOLDataWrapper(COLLADAFW::MeshVertexData& vdata) : mVData(&vda
void VCOLDataWrapper::get_vcol(int v_index, MLoopCol *mloopcol) void VCOLDataWrapper::get_vcol(int v_index, MLoopCol *mloopcol)
{ {
int stride = mVData->getStride(0); int stride = mVData->getStride(0);
if(stride == 0) stride =3; if (stride == 0) stride = 3;
switch (mVData->getType()) { switch (mVData->getType()) {
case COLLADAFW::MeshVertexData::DATA_TYPE_FLOAT: case COLLADAFW::MeshVertexData::DATA_TYPE_FLOAT:

@ -1802,7 +1802,7 @@ static void view3d_draw_bgpic(Scene *scene, ARegion *ar, View3D *v3d,
glColor4f(1.0f, 1.0f, 1.0f, 1.0f - bgpic->blend); glColor4f(1.0f, 1.0f, 1.0f, 1.0f - bgpic->blend);
/* could not use glaDrawPixelsAuto because it could fallback to /* could not use glaDrawPixelsAuto because it could fallback to
* glaDrawPixelsSafe in some cases, which will end up in misssing * glaDrawPixelsSafe in some cases, which will end up in missing
* alpha transparency for the background image (sergey) * alpha transparency for the background image (sergey)
*/ */
glaDrawPixelsTex(x1, y1, ibuf->x, ibuf->y, GL_RGBA, GL_UNSIGNED_BYTE, GL_LINEAR, ibuf->rect); glaDrawPixelsTex(x1, y1, ibuf->x, ibuf->y, GL_RGBA, GL_UNSIGNED_BYTE, GL_LINEAR, ibuf->rect);

@ -96,7 +96,7 @@ def test_urls():
import rna_wiki_reference import rna_wiki_reference
import urllib.error import urllib.error
from urllib.request import urlopen from urllib.request import urlopen
prefix = rna_wiki_reference.url_manual_prefix prefix = rna_wiki_reference.url_manual_prefix
urls = {suffix for (rna_id, suffix) in rna_wiki_reference.url_manual_mapping} urls = {suffix for (rna_id, suffix) in rna_wiki_reference.url_manual_mapping}