Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
661b6d12
Commit
661b6d12
authored
7 months ago
by
Roxie Linden
Browse files
Options
Downloads
Patches
Plain Diff
Don't call virtual functions in a derived class constructor
parent
8897ebeb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llvoicewebrtc.cpp
+5
-12
5 additions, 12 deletions
indra/newview/llvoicewebrtc.cpp
with
5 additions
and
12 deletions
indra/newview/llvoicewebrtc.cpp
+
5
−
12
View file @
661b6d12
...
@@ -2150,20 +2150,9 @@ LLVoiceWebRTCConnection::LLVoiceWebRTCConnection(const LLUUID ®ionID, const s
...
@@ -2150,20 +2150,9 @@ LLVoiceWebRTCConnection::LLVoiceWebRTCConnection(const LLUUID ®ionID, const s
mOutstandingRequests
(
0
),
mOutstandingRequests
(
0
),
mChannelID
(
channelID
),
mChannelID
(
channelID
),
mRegionID
(
regionID
),
mRegionID
(
regionID
),
mPrimary
(
fals
e
),
mPrimary
(
tru
e
),
mRetryWaitPeriod
(
0
)
mRetryWaitPeriod
(
0
)
{
{
if
(
isSpatial
())
{
if
(
gAgent
.
getRegion
())
{
mPrimary
=
(
regionID
==
gAgent
.
getRegion
()
->
getRegionID
());
}
}
else
{
mPrimary
=
true
;
}
// retries wait a short period...randomize it so
// retries wait a short period...randomize it so
// all clients don't try to reconnect at once.
// all clients don't try to reconnect at once.
...
@@ -3065,6 +3054,10 @@ LLVoiceWebRTCSpatialConnection::LLVoiceWebRTCSpatialConnection(const LLUUID ®
...
@@ -3065,6 +3054,10 @@ LLVoiceWebRTCSpatialConnection::LLVoiceWebRTCSpatialConnection(const LLUUID ®
LLVoiceWebRTCConnection
(
regionID
,
channelID
),
LLVoiceWebRTCConnection
(
regionID
,
channelID
),
mParcelLocalID
(
parcelLocalID
)
mParcelLocalID
(
parcelLocalID
)
{
{
if
(
gAgent
.
getRegion
())
{
mPrimary
=
(
regionID
==
gAgent
.
getRegion
()
->
getRegionID
());
}
}
}
LLVoiceWebRTCSpatialConnection
::~
LLVoiceWebRTCSpatialConnection
()
LLVoiceWebRTCSpatialConnection
::~
LLVoiceWebRTCSpatialConnection
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment