Cleanup: incorrect comments, use C comments

This commit is contained in:
Campbell Barton 2022-03-16 15:19:31 +11:00
parent 24ada9c960
commit 8cfdad99a0
Notes: blender-bot 2023-02-14 00:10:08 +01:00
Referenced by issue #96512, Crash when selecting edge
6 changed files with 12 additions and 12 deletions

View File

@ -77,7 +77,7 @@ class BPathTest : public testing::Test {
TEST_F(BPathTest, rebase_on_relative)
{
// Test on relative paths, should be modified.
/* Test on relative paths, should be modified. */
Text *text = reinterpret_cast<Text *>(bmain->texts.first);
text->filepath = BLI_strdup(TEXT_PATH_RELATIVE);
@ -92,7 +92,7 @@ TEST_F(BPathTest, rebase_on_relative)
TEST_F(BPathTest, rebase_on_absolute)
{
// Test on absolute paths, should not be modified.
/* Test on absolute paths, should not be modified. */
Text *text = reinterpret_cast<Text *>(bmain->texts.first);
text->filepath = BLI_strdup(TEXT_PATH_ABSOLUTE);
@ -115,9 +115,9 @@ TEST_F(BPathTest, convert_to_relative)
BKE_bpath_relative_convert(bmain, BASE_DIR, nullptr);
// Already relative path should not be modified.
/* Already relative path should not be modified. */
EXPECT_STREQ(text->filepath, TEXT_PATH_RELATIVE);
// Absolute path should be modified.
/* Absolute path should be modified. */
EXPECT_STREQ(movie_clip->filepath, MOVIECLIP_PATH_ABSOLUTE_MADE_RELATIVE);
}
@ -131,9 +131,9 @@ TEST_F(BPathTest, convert_to_absolute)
BKE_bpath_absolute_convert(bmain, BASE_DIR, nullptr);
// Relative path should be modified.
/* Relative path should be modified. */
EXPECT_STREQ(text->filepath, TEXT_PATH_RELATIVE_MADE_ABSOLUTE);
// Already absolute path should not be modified.
/* Already absolute path should not be modified. */
EXPECT_STREQ(movie_clip->filepath, MOVIECLIP_PATH_ABSOLUTE);
}

View File

@ -114,7 +114,7 @@ void CompositorOperation::deinit_execution()
void CompositorOperation::execute_region(rcti *rect, unsigned int /*tile_number*/)
{
float color[8]; // 7 is enough
float color[8]; /* 7 is enough. */
float *buffer = output_buffer_;
float *zbuffer = depth_buffer_;

View File

@ -134,7 +134,7 @@ static void extract_uv_init_subdiv(const DRWSubdivCache *subdiv_cache,
uint uv_layers;
if (!mesh_extract_uv_format_init(
&format, cache, &coarse_mesh->ldata, MR_EXTRACT_MESH, uv_layers)) {
// TODO(kevindietrich): handle this more gracefully.
/* TODO(kevindietrich): handle this more gracefully. */
v_len = 1;
}

View File

@ -1535,7 +1535,7 @@ void VIEW3D_OT_select_menu(wmOperatorType *ot)
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
/* keyingset to use (dynamic enum) */
/* #Object.id.name to select (dynamic enum). */
prop = RNA_def_enum(ot->srna, "name", DummyRNA_NULL_items, 0, "Object Name", "");
RNA_def_enum_funcs(prop, object_select_menu_enum_itemf);
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_ENUM_NO_TRANSLATE);
@ -1713,7 +1713,7 @@ void VIEW3D_OT_bone_select_menu(wmOperatorType *ot)
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
/* keyingset to use (dynamic enum) */
/* #Object.id.name to select (dynamic enum). */
prop = RNA_def_enum(ot->srna, "name", DummyRNA_NULL_items, 0, "Bone Name", "");
RNA_def_enum_funcs(prop, object_select_menu_enum_itemf);
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_ENUM_NO_TRANSLATE);

View File

@ -1,6 +1,6 @@
void main()
{
// no color output, only depth (line below is implicit)
/* No color output, only depth (line below is implicit). */
// gl_FragDepth = gl_FragCoord.z;
}

View File

@ -663,7 +663,7 @@ static void *ml_addview_cb(void *base, const char *str)
static int order_render_passes(const void *a, const void *b)
{
// 1 if a is after b
/* 1 if `a` is after `b`. */
RenderPass *rpa = (RenderPass *)a;
RenderPass *rpb = (RenderPass *)b;
unsigned int passtype_a = passtype_from_name(rpa->name);